C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
AnalyzeReTesting.IInjectableResource< out T > Interface Template Reference

Interface for a class containing a resource that can be Posted with dependencies. More...

Properties

IReference< TAsInlinedReference [get]
 A reference to the unPOSTed resource (i.e. an inlined reference).
 
IReference< TAsReference [get]
 A reference to the posted resource.
 
bool Mocked [get, set]
 If true, the resource is mocked (doesn't actually exist on a server) and so attempts to do server-side operations with this resource should fail.
 
T Posted [get]
 The posted resource, ready to be referenced.
 
Type UnderlyingType [get]
 The runtime type of the resource that an instance will inject.
 
T Unposted [get]
 The unPOSTed resource definition.
 

Detailed Description

Interface for a class containing a resource that can be Posted with dependencies.

Template Parameters
TThe type of resource contained.

TODO: The entire InjectableResource architecture was developed so that the test suite could clean up after each test by deleting the injected resources. Our API has since deviated from a design that allows for resource deletion, so this architecture is left looking "over-engineered". It has since been leveraged to offer some convenient logging and caching features that improve test output and performance, but may one day be refactored to simplify things greatly.

Type Constraints
T :IAPIResource 

Definition at line 23 of file InjectableResource[T].cs.

Property Documentation

◆ AsInlinedReference

A reference to the unPOSTed resource (i.e. an inlined reference).

Definition at line 40 of file InjectableResource[T].cs.

◆ AsReference

A reference to the posted resource.

Definition at line 36 of file InjectableResource[T].cs.

◆ Mocked

If true, the resource is mocked (doesn't actually exist on a server) and so attempts to do server-side operations with this resource should fail.

Definition at line 27 of file InjectableResource[T].cs.

◆ Posted

The posted resource, ready to be referenced.

Definition at line 30 of file InjectableResource[T].cs.

◆ UnderlyingType

Type AnalyzeReTesting.IInjectableResource< out T >.UnderlyingType
get

The runtime type of the resource that an instance will inject.

Definition at line 43 of file InjectableResource[T].cs.

◆ Unposted

The unPOSTed resource definition.

Definition at line 33 of file InjectableResource[T].cs.


The documentation for this interface was generated from the following file: