C# Client Library
A C# Client Library for the AnalyzeRe REST API
|
Static Public Member Functions | |
static void | ApplyConfiguredCredentials () |
Apply the current configured API_URL and API_AuthenticationToken credentials to the static API. | |
static void | CheckConnection () |
Set the Client API Server URL to the configured API_URL. | |
static ICollection< TCollectionItem > | NewCollection< TTarget, TCollectionItem > (Expression< Func< TTarget, ICollection< TCollectionItem > > > propertyExpression, IEnumerable< TCollectionItem > initialItems=null) |
Helper method to create a new collection instance based on the type of the referenced property expression. | |
static void | TestSuiteCleanup () |
Actions to run once when the C# Unit Tests finish. Note: This method will not automatically be inherited and run by tests suites in different assemblies that import this library. You will need to create your own method with the [AssemblyCleanup] attribute that calls this method. | |
static void | TestSuiteInitialize (TestContext context) |
Actions to run once when the C# Unit Tests initialize. Note: This method will not automatically be inherited and run by tests suites in different assemblies that import this library. You will need to create your own method with the [AssemblyInitialize] attribute that calls this method. | |
Static Public Attributes | |
static Reflection | Reflection |
Shared instance of a class for generating random resources. | |
static Samples | Samples |
Shared instance of a class for generating reusable sample resources. | |
Protected Member Functions | |
void | AddCommonTestCleanupAction (Action action) |
void | AddCommonTestInitializeAction (Action action) |
virtual T | POST_ForPutTest (T validToPost, Action< T > putTest) |
Used for all PUT tests and PUT helper methods. Similar to the base helper method BaseResourceTestSuite<T>.POST_ThenDoAction, but kept separate because they may be overridden differently. In particular, the BaseResourceWithDataTestSuite<T> needs to override the standard POST to upload data, but leave out the data when preparing for PUT tests, because these resources are only mutable while data upload is pending. | |
void | TestResourceDeleteHelper (T toDelete, bool isDeleteAllowed) |
Static Protected Member Functions | |
static void | BaseClass_Cleanup (Action action) |
static void | BaseClass_Initialize (TestContext context, Action action) |
static void | TestCopyHelper< TCopy > (TCopy original, Func< TCopy, TCopy > copyAction) |
Properties | |
static IAccessToken | API_AuthenticationToken [get, set] |
Set the AuthenticationToken to supply to the server before every test (if applicable). | |
static string | API_URL [get, set] |
Location of the REST API being tested against. This can be set using the API_URL environment variable. Default is https://localhost:8000/. | |
virtual bool | DELETE_Allowed [get] |
bool | DeletingResourcesBetweenTests [get] |
Determines based on the EnvironmentSettings whether injected resources (such as Samples) are being deleted between each test. | |
TestContext | TestContext [get, set] |
IInjectableResource< T > | TestInjectableResource [get] |
Deriving class must override the TestResourceFactory to return a disposable POSTable test resource that unit tests can consume. | |
virtual T | TestResource [get] |
The resource used for all unit tests that require a valid prepared but unPOSTed resource. | |
virtual T | TestResource_Existing [get] |
The resource used for all unit tests that require a prepared and already posted resource. Warning, there is no protection against the user invoking "PUT" on this resource and changing the state of the resource on the API for everyone. Users that require a resource that it can make modifications to and test saving those modifications must not use this resource. It's here for speed to avoid having to re-POST the same resource multiple times for read-only purposes. | |
bool | TryPost_RandomTestResources = true [get, set] |
Allows deriving classes to disable attempting to POST and validate random resources generated by the Test_Resource_OnlineRandomGeneration base tests method - since some randomly generated resources can wreak havoc on the server. When we have some time to "disaster-proof" the server, we should turn these on and solve the problems encountered. | |
bool | TryRunAdditionalValidResourceTests_RandomTestResources = true [get, set] |
Similar to TryPost_RandomTestResources - but controls whether these resources have the AdditionalValidResourceTests method run on them. | |
T | : | Layer_WithTerms |
Definition at line 2781 of file Test_Layer.cs.
|
inlineprotectedinherited |
Definition at line 80 of file BaseTestSuite.cs.
|
inlineprotectedinherited |
Definition at line 75 of file BaseTestSuite.cs.
|
virtualinherited |
For all tests, we want to test success both when the layer is posted on its own, and when it's posted as part of an inlined layer_view definition. To do this, we do additional validation on each posted layer that also tries adding it to a layer_view, and even simulating that layer_view.
Deriving classes can optionally override this function to perform additional validation on every successfully POSTed resource.
Reimplemented from AnalyzeReTesting.Base.BaseResourceTestSuite< T >.
|
inlinestaticinherited |
Apply the current configured API_URL and API_AuthenticationToken credentials to the static API.
Definition at line 226 of file BaseServerAPITestSuite.cs.
|
inlinestaticprotectedinherited |
Definition at line 66 of file BaseTestSuite.cs.
|
inlinestaticprotectedinherited |
Definition at line 56 of file BaseTestSuite.cs.
|
inlineinherited |
Definition at line 46 of file BaseTestSuite.cs.
|
inlineinherited |
Definition at line 35 of file BaseTestSuite.cs.
|
inlinestaticinherited |
Set the Client API Server URL to the configured API_URL.
Definition at line 235 of file BaseServerAPITestSuite.cs.
|
inlinestaticinherited |
Helper method to create a new collection instance based on the type of the referenced property expression.
Definition at line 221 of file BaseResourceTestSuite.cs.
|
inlineinherited |
Post a resource with the specified property set to null.
TProperty | The type of the property being modified. |
PropertyExpression | An expression indicating the TResource property to modify. |
shouldSucceed | (Optional) Whether the action should succeed. Will be automatically determined from the property attributes if not supplied. |
ArgumentException | Can only be used on properties whose default type is null. |
Definition at line 195 of file BaseResourceTestSuite.cs.
|
protectedvirtualinherited |
Used for all PUT tests and PUT helper methods. Similar to the base helper method BaseResourceTestSuite<T>.POST_ThenDoAction, but kept separate because they may be overridden differently. In particular, the BaseResourceWithDataTestSuite<T> needs to override the standard POST to upload data, but leave out the data when preparing for PUT tests, because these resources are only mutable while data upload is pending.
validToPost | The resource to post. |
putTest | The test to perform following the successful POST of the base resource. |
|
inlineinherited |
TValue | : | TItem |
Definition at line 247 of file BaseResourceTestSuite.cs.
|
inlineinherited |
Definition at line 237 of file BaseResourceTestSuite.cs.
|
inlineinherited |
Posts a reference with a empty string Id and verifies the correct error is returned.
TRefType | The type of the reference being modified. |
PropertyExpression | An expression indicating the TResource reference property to modify. |
TRefType | : | IAPIResource |
Definition at line 273 of file BaseResourceTestSuite.cs.
|
inlineinherited |
Posts a reference with a non-existent Id and verifies the correct error is returned.
TRefType | The type of the reference being modified. |
PropertyExpression | An expression indicating the TResource reference property to modify. |
TRefType | : | IAPIResource |
Definition at line 283 of file BaseResourceTestSuite.cs.
|
inlineinherited |
Posts a reference with a null Id and verifies the correct error is returned.
TRefType | The type of the reference being modified. |
PropertyExpression | An expression indicating the TResource reference property to modify. |
TRefType | : | IAPIResource |
Definition at line 264 of file BaseResourceTestSuite.cs.
|
inlineinherited |
Posts a reference list with a non-existent Id and verifies the correct error is returned.
TRefType | The type of the reference being modified. |
PropertyExpression | An expression indicating the TResource reference list property to modify. |
TRefType | : | IAPIResource |
Definition at line 294 of file BaseResourceTestSuite.cs.
|
inlineinherited |
Post a resource with the specified string set to an empty string.
PropertyExpression | An expression indicating the TResource property to modify. |
shouldSucceed | (Optional) Whether the action should succeed. Will be automatically determined from the property attributes if not supplied. |
Definition at line 209 of file BaseResourceTestSuite.cs.
|
virtualinherited |
Post a valid resource under the assumption that it will succeed, then perform an action on the resulting posted object, then clean up.
validToPost | The resource to post. |
toExecute | The action to execute on the posted object after posting and before cleaning up. |
Reimplemented in AnalyzeReTesting.Base.BaseResourceWithDataTestSuite< T >.
|
inlinevirtualinherited |
Modify a property of the test resource, and then test it.
TProperty | The type of the property being modified. |
PropertyExpression | An expression indicating the TResource property to modify. |
newValue | The new value to give the property being modified. |
shouldSucceed | Whether the action should succeed. |
Reimplemented from AnalyzeReTesting.Base.BaseResourceTestSuite< T >.
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 3447 of file Test_Layer.cs.
|
inlinevirtualinherited |
Similar to POST_WithValue<TProperty>, except asserts the additional (odd) behaviour that success or failure of the POST is opposite for layers and layer_views. This is necessary because some layer types or values are only permitted when the layer is defined as part of a layer_view definitions.
TProperty | The type of layer property being modified. |
PropertyExpression | The layer property to modify. |
newValue | The new value to assign the property. |
layerPostSucceeeds | Whether the Layer POST should succeed. If set to true, the expectation is that the layer_view post will fail. If set to false, the expectation is that the layer_view post will succeed. |
Definition at line 3469 of file Test_Layer.cs.
|
inlineinherited |
Ensure that when doing a PUT with the specified attribute null, the original value of the attribute is unchanged.
As reported in BUG ARE-2618, there are several inconsistencies with how 'null' (or omitted) properties are handled by the server. Sometimes it "resets" them to their default value, and sometimes it leaves them unchanged. TODO: Change this test to check the behaviour when the property is initially set to some value other than the default value - so that we can see whether the server property is actually leaving the current value alone, or resetting it to its default.
TProperty | The type of the property being modified. |
PropertyExpression | An expression indicating the T property to modify. |
ArgumentException | Can only be used on properties whose default type is null. |
Definition at line 176 of file BaseMutableResourceTestSuite.cs.
|
inlineinherited |
TValue | : | TItem |
Definition at line 207 of file BaseMutableResourceTestSuite.cs.
|
inlineinherited |
Definition at line 197 of file BaseMutableResourceTestSuite.cs.
|
inlineinherited |
Modifies a reference with a empty string Id and verifies the correct error is returned.
TRefType | The type of the reference being modified. |
PropertyExpression | An expression indicating the TResource reference property to modify. |
TRefType | : | IAPIResource |
Definition at line 235 of file BaseMutableResourceTestSuite.cs.
|
inlineinherited |
Modifies a reference with a non-existent Id and verifies the correct error is returned.
TRefType | The type of the reference being modified. |
PropertyExpression | An expression indicating the TResource reference property to modify. |
TRefType | : | IAPIResource |
Definition at line 246 of file BaseMutableResourceTestSuite.cs.
|
inlineinherited |
Modifies a reference with a null Id and verifies the correct error is returned.
TRefType | The type of the reference being modified. |
PropertyExpression | An expression indicating the TResource reference property to modify. |
TRefType | : | IAPIResource |
Definition at line 225 of file BaseMutableResourceTestSuite.cs.
|
inlineinherited |
Modifies a reference list with a non-existent Id and verifies the correct error is returned.
TRefType | The type of the reference being modified. |
PropertyExpression | An expression indicating the TResource reference list property to modify. |
TRefType | : | IAPIResource |
Definition at line 256 of file BaseMutableResourceTestSuite.cs.
|
inlineinherited |
Ensure that when doing a PUT with the specified attribute set to an empty string, the PUT succeeds or fails with the correct error.
Definition at line 186 of file BaseMutableResourceTestSuite.cs.
|
inherited |
POST a valid resource, then test doing a PUT on the resource after modifying it in some way, and assert that the PUT fails due to a "BadRequest" error.
modifyTestResource | A function to modify the test resource for put. |
|
inlinevirtualinherited |
POST a valid resource, then test doing a PUT on the resource after modifying it in some way, and assert that the PUT succeeds.
modifyTestResource | A function to modify the test resource for put. |
Definition at line 140 of file BaseMutableResourceTestSuite.cs.
|
inlineinherited |
POST a valid resource, then test doing a PUT on the resource after changing a specified attribute.
TProperty | The type of the property being modified. |
PropertyExpression | An expression indicating the T property to modify. |
newValue | The new value to give the property being modified. |
shouldSucceed | Whether the action should succeed. |
Definition at line 128 of file BaseMutableResourceTestSuite.cs.
|
inlinevirtual |
Definition at line 2898 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 2821 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 2855 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 2942 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 2975 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 2905 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 2960 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 3005 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 2920 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 2990 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 2887 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 3067 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 2881 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 2827 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 2844 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 2833 of file Test_Layer.cs.
|
inlinevirtual |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_SurplusShare.
Definition at line 2813 of file Test_Layer.cs.
|
inlinevirtual |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_SurplusShare.
Definition at line 2803 of file Test_Layer.cs.
|
inlinevirtual |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_SurplusShare.
Definition at line 2788 of file Test_Layer.cs.
|
inlinevirtual |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_SurplusShare.
Definition at line 2793 of file Test_Layer.cs.
|
inlinevirtual |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_SurplusShare.
Definition at line 2798 of file Test_Layer.cs.
|
inlinevirtual |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_SurplusShare.
Definition at line 2808 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 2872 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 2866 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 3085 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 3104 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 3131 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 3091 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 3097 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 3121 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 3111 of file Test_Layer.cs.
|
inlinevirtual |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_SurplusShare.
Definition at line 3077 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 3148 of file Test_Layer.cs.
|
inlinevirtual |
Definition at line 3142 of file Test_Layer.cs.
|
inlinevirtualinherited |
As a sanity check, layers that are saveable should not carry the NotSaveableAttribute. This is of course overridden to test the opposite in TestSuite_Layer_Unsaveable<T>.
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 3415 of file Test_Layer.cs.
|
inlinevirtualinherited |
Definition at line 3276 of file Test_Layer.cs.
|
inlinevirtualinherited |
Definition at line 3265 of file Test_Layer.cs.
|
inlinevirtualinherited |
Definition at line 3260 of file Test_Layer.cs.
|
inlinevirtualinherited |
Definition at line 3271 of file Test_Layer.cs.
|
inlinevirtualinherited |
Definition at line 3255 of file Test_Layer.cs.
|
inlinevirtualinherited |
Definition at line 3313 of file Test_Layer.cs.
|
inlinevirtualinherited |
Definition at line 3308 of file Test_Layer.cs.
|
inlinevirtualinherited |
Definition at line 3303 of file Test_Layer.cs.
|
inlinevirtualinherited |
Definition at line 3293 of file Test_Layer.cs.
|
inlinevirtualinherited |
Definition at line 3298 of file Test_Layer.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 3350 of file Test_Layer.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 3326 of file Test_Layer.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 3339 of file Test_Layer.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 3334 of file Test_Layer.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 3345 of file Test_Layer.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 3366 of file Test_Layer.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 3386 of file Test_Layer.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 3381 of file Test_Layer.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 3376 of file Test_Layer.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 3371 of file Test_Layer.cs.
|
inlinevirtualinherited |
Test reflection utilities meant to randomly change property values in a way that would pass server validation.
Definition at line 453 of file BaseResourceTestSuite.cs.
|
inlinevirtualinherited |
Test that any resource can be "Deep Copied", a slower copy method that creates a new duplicate instance of a resource type by serializing it and then deserializing the resulting JSON to a new resource.
Reimplemented from AnalyzeReTesting.Base.BaseResourceTestSuite< T >.
Definition at line 3506 of file Test_Layer.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 310 of file BaseResourceTestSuite.cs.
|
inlinevirtualinherited |
Definition at line 319 of file BaseResourceTestSuite.cs.
|
inlinevirtualinherited |
Reimplemented from AnalyzeReTesting.Base.BaseResourceTestSuite< T >.
Definition at line 3434 of file Test_Layer.cs.
|
inlinevirtualinherited |
Definition at line 3426 of file Test_Layer.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 61 of file BaseResourceTestSuite.cs.
|
inlinevirtualinherited |
IStoredAPIResource collections support reference resolution.
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 29 of file BaseStoredResourceTestSuite.cs.
|
inlinevirtualinherited |
Test that resources of this type can be retrieved using the collection batch-get feature.
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 91 of file BaseResourceTestSuite.cs.
|
inlinevirtualinherited |
Verify that all runtime types expose their collection name.
Definition at line 78 of file BaseResourceTestSuite.cs.
|
inlinevirtualinherited |
Test reflection utilities meant to randomly change property values (used for testing comprarer coverage).
Definition at line 409 of file BaseResourceTestSuite.cs.
|
inlinevirtualinherited |
Test reflection utilities meant to randomly change property values in a way that would pass server validation.
Definition at line 436 of file BaseResourceTestSuite.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Base.BaseResourceWithDataTestSuite< T >, and AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 57 of file BaseStoredResourceTestSuite.cs.
|
inlinevirtualinherited |
Definition at line 49 of file BaseStoredResourceTestSuite.cs.
|
inlinevirtualinherited |
Definition at line 43 of file BaseStoredResourceTestSuite.cs.
|
inlinevirtualinherited |
Verifies that it is okay to post an object with an ID that already exists on the server, even if the object is identical to the one already on the server. This is tested by posting a valid resource, and then rePOSTing the returned resource again (including the id property).
TODO: This test is almost meaningless because the JSON serializer used does not even include the ID in the request JSON (as it is a server-generated property). As such, this does not end up testing the behaviour of the server, so much as the behaviour of the client library.
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >, and AnalyzeReTesting.Tests.Model.TestSuite_OptimizationFunction< T >.
Definition at line 142 of file BaseResourceTestSuite.cs.
|
inlinevirtualinherited |
Test that a user can post a resource and get back only the id using the omit query parameter.
Reimplemented from AnalyzeReTesting.Base.BaseResourceTestSuite< T >.
Definition at line 3486 of file Test_Layer.cs.
|
inlinevirtualinherited |
No matter what string we set the Id property to, POST should succeed because the Id of the posted resource should be ignored by the server.
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 127 of file BaseResourceTestSuite.cs.
|
inlinevirtualinherited |
Definition at line 76 of file BaseStoredResourceTestSuite.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_OptimizationFunction< T >.
Definition at line 93 of file BaseStoredResourceTestSuite.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_OptimizationFunction< T >.
Definition at line 81 of file BaseStoredResourceTestSuite.cs.
|
inlinevirtualinherited |
Definition at line 71 of file BaseStoredResourceTestSuite.cs.
|
virtualinherited |
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 55 of file BaseMutableResourceTestSuite.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 35 of file BaseMutableResourceTestSuite.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 47 of file BaseMutableResourceTestSuite.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 41 of file BaseMutableResourceTestSuite.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 79 of file BaseMutableResourceTestSuite.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 96 of file BaseMutableResourceTestSuite.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 84 of file BaseMutableResourceTestSuite.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 74 of file BaseMutableResourceTestSuite.cs.
|
inlinevirtualinherited |
Reimplemented in AnalyzeReTesting.Base.BaseResourceWithDataTestSuite< T >, and AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >.
Definition at line 27 of file BaseMutableResourceTestSuite.cs.
|
inlinevirtualinherited |
All resources should support searching in a few fundamental ways.
Reimplemented in AnalyzeReTesting.Tests.Model.TestSuite_Layer_Unsaveable< T >, and AnalyzeReTesting.Tests.Model.TestSuite_OptimizationFunction< T >.
Definition at line 109 of file BaseStoredResourceTestSuite.cs.
|
inlinevirtualinherited |
Test that any resource can be "Shallow Copied", which is a quick copy that does a member-wise clone of the object, including private members.
Reimplemented from AnalyzeReTesting.Base.BaseResourceTestSuite< T >.
Definition at line 3496 of file Test_Layer.cs.
|
inlinevirtualinherited |
Test reflection utilities meant to get extract information about runtime types.
Definition at line 375 of file BaseResourceTestSuite.cs.
|
inlinestaticprotectedinherited |
TCopy | : | IAPIResource |
Definition at line 488 of file BaseResourceTestSuite.cs.
|
inlineprotectedinherited |
Definition at line 330 of file BaseResourceTestSuite.cs.
|
inlinestaticinherited |
Actions to run once when the C# Unit Tests finish. Note: This method will not automatically be inherited and run by tests suites in different assemblies that import this library. You will need to create your own method with the [AssemblyCleanup] attribute that calls this method.
Definition at line 163 of file BaseServerAPITestSuite.cs.
|
inlinestaticinherited |
Actions to run once when the C# Unit Tests initialize. Note: This method will not automatically be inherited and run by tests suites in different assemblies that import this library. You will need to create your own method with the [AssemblyInitialize] attribute that calls this method.
Definition at line 84 of file BaseServerAPITestSuite.cs.
|
staticinherited |
Shared instance of a class for generating random resources.
Definition at line 18 of file BaseClientTestSuite.cs.
|
staticinherited |
Shared instance of a class for generating reusable sample resources.
Definition at line 15 of file BaseClientTestSuite.cs.
|
staticgetsetinherited |
Set the AuthenticationToken to supply to the server before every test (if applicable).
Definition at line 32 of file BaseServerAPITestSuite.cs.
|
staticgetsetinherited |
Location of the REST API being tested against. This can be set using the API_URL environment variable. Default is https://localhost:8000/.
Definition at line 28 of file BaseServerAPITestSuite.cs.
|
getprotectedinherited |
Definition at line 46 of file BaseResourceTestSuite.cs.
|
getinherited |
Determines based on the EnvironmentSettings whether injected resources (such as Samples) are being deleted between each test.
Definition at line 46 of file BaseServerAPITestSuite.cs.
|
getsetinherited |
Definition at line 20 of file BaseTestSuite.cs.
|
getabstractprotectedinherited |
Deriving class must override the TestResourceFactory to return a disposable POSTable test resource that unit tests can consume.
Definition at line 51 of file BaseResourceTestSuite.cs.
|
getprotectedinherited |
The resource used for all unit tests that require a valid prepared but unPOSTed resource.
Definition at line 34 of file BaseResourceTestSuite.cs.
|
getprotectedinherited |
The resource used for all unit tests that require a prepared and already posted resource. Warning, there is no protection against the user invoking "PUT" on this resource and changing the state of the resource on the API for everyone. Users that require a resource that it can make modifications to and test saving those modifications must not use this resource. It's here for speed to avoid having to re-POST the same resource multiple times for read-only purposes.
Definition at line 43 of file BaseResourceTestSuite.cs.
|
getsetinherited |
Allows deriving classes to disable attempting to POST and validate random resources generated by the Test_Resource_OnlineRandomGeneration base tests method - since some randomly generated resources can wreak havoc on the server. When we have some time to "disaster-proof" the server, we should turn these on and solve the problems encountered.
Definition at line 426 of file BaseResourceTestSuite.cs.
|
getsetinherited |
Similar to TryPost_RandomTestResources - but controls whether these resources have the AdditionalValidResourceTests method run on them.
Definition at line 431 of file BaseResourceTestSuite.cs.