C# Client Library
A C# Client Library for the AnalyzeRe REST API
|
Interface for a class containing a resource that can be Posted with dependencies. More...
Properties | |
IReference< T > | AsInlinedReference [get] |
A reference to the unPOSTed resource (i.e. an inlined reference). | |
IReference< T > | AsReference [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. | |
Interface for a class containing a resource that can be Posted with dependencies.
T | The 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.
T | : | IAPIResource |
Definition at line 23 of file InjectableResource[T].cs.
|
get |
A reference to the unPOSTed resource (i.e. an inlined reference).
Definition at line 40 of file InjectableResource[T].cs.
|
get |
A reference to the posted resource.
Definition at line 36 of file InjectableResource[T].cs.
|
getset |
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.
|
get |
The posted resource, ready to be referenced.
Definition at line 30 of file InjectableResource[T].cs.
|
get |
The runtime type of the resource that an instance will inject.
Definition at line 43 of file InjectableResource[T].cs.
|
get |
The unPOSTed resource definition.
Definition at line 33 of file InjectableResource[T].cs.