C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer Class Referencesealed

Public Member Functions

override void AdditionalValidResourceTests (T posted)
 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.
 
override void POST_WithValue< TProperty > (Expression< Func< T, TProperty > > PropertyExpression, TProperty newValue, bool shouldSucceed)
 
virtual void POST_WithValue_Inconsistent< TProperty > (Expression< Func< T, TProperty > > PropertyExpression, TProperty newValue, bool layerPostSucceeeds)
 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.
 
void Test_Layer_BackAllocatedLayer_POST_Sink_InvalidTypes ()
 
void Test_Layer_BackAllocatedLayer_POST_Sink_LayerViewReference ()
 
void Test_Layer_BackAllocatedLayer_POST_Sink_Null ()
 
void Test_Layer_BackAllocatedLayer_POST_Sink_Reference_EmptyStringId ()
 
void Test_Layer_BackAllocatedLayer_POST_Sink_Reference_NonExistantId ()
 
void Test_Layer_BackAllocatedLayer_POST_Sink_Reference_NullId ()
 
void Test_Layer_BackAllocatedLayer_POST_Sink_ValidTypes ()
 
void Test_Layer_BackAllocatedLayer_POST_SourceId_Blank ()
 
void Test_Layer_BackAllocatedLayer_POST_SourceId_LossSet ()
 
void Test_Layer_BackAllocatedLayer_POST_SourceId_Malformed ()
 
void Test_Layer_BackAllocatedLayer_POST_SourceId_NonExistant ()
 
void Test_Layer_BackAllocatedLayer_POST_SourceId_Null ()
 
void Test_Layer_BackAllocatedLayer_PUT_Sink_Inlined ()
 
void Test_Layer_BackAllocatedLayer_PUT_Sink_InvalidTypes ()
 
void Test_Layer_BackAllocatedLayer_PUT_Sink_LayerViewReference ()
 
void Test_Layer_BackAllocatedLayer_PUT_Sink_Null ()
 
void Test_Layer_BackAllocatedLayer_PUT_Sink_Reference_EmptyStringId ()
 
void Test_Layer_BackAllocatedLayer_PUT_Sink_Reference_NonExistantId ()
 
void Test_Layer_BackAllocatedLayer_PUT_Sink_Reference_NullId ()
 
void Test_Layer_BackAllocatedLayer_PUT_Sink_ValidTypes ()
 
void Test_Layer_BackAllocatedLayer_PUT_Source ()
 
void Test_Layer_BackAllocatedLayer_PUT_SourceId ()
 
void Test_Layer_BackAllocatedLayer_PUT_SourceId_Blank ()
 
void Test_Layer_BackAllocatedLayer_PUT_SourceId_Malformed ()
 
void Test_Layer_BackAllocatedLayer_PUT_SourceId_Null ()
 
virtual void Test_Layer_Saveable ()
 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>.
 
override void Test_Resource_DeepCopy ()
 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.
 
override void Test_Resource_GET_AllPropertiesRecognized ()
 
virtual void Test_Resource_GET_As_Inlined ()
 
override void Test_Resource_POST_FieldsIdOnly ()
 Test that a user can post a resource and get back only the id using the omit query parameter.
 
override void Test_Resource_ShallowCopy ()
 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.
 

Properties

static IEnumerable< IInjectableResource< ILayer > > ForbiddenSinkLayerTypesTestList [get]
 A set of injectable test layers that are not valid to use as a sink.
 
override IInjectableResource< BackAllocatedLayerTestInjectableResource [get]
 
static HashSet< Type > UnsupportedBackAllocatedLayerSinkTypes [get]
 Types that cannot be the sink of a Back-Allocated layer.
 
static IEnumerable< IInjectableResource< ILayer > > ValidSinkLayerTypesTestList [get]
 A set of injectable test layers that are valid to use as a sink.
 

Detailed Description

Definition at line 1918 of file Test_Layer.cs.

Inheritance diagram for AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer:
AnalyzeReTesting.Tests.Model.TestSuite_Layer< BackAllocatedLayer >

Member Function Documentation

◆ AdditionalValidResourceTests()

override void AnalyzeReTesting.Tests.Model.TestSuite_Layer< T >.AdditionalValidResourceTests ( T  posted)
inherited

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.

◆ POST_WithValue< TProperty >()

override void AnalyzeReTesting.Tests.Model.TestSuite_Layer< T >.POST_WithValue< TProperty > ( Expression< Func< T, TProperty > >  PropertyExpression,
TProperty  newValue,
bool  shouldSucceed 
)
inlineinherited

Definition at line 3447 of file Test_Layer.cs.

◆ POST_WithValue_Inconsistent< TProperty >()

virtual void AnalyzeReTesting.Tests.Model.TestSuite_Layer< T >.POST_WithValue_Inconsistent< TProperty > ( Expression< Func< T, TProperty > >  PropertyExpression,
TProperty  newValue,
bool  layerPostSucceeeds 
)
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.

Template Parameters
TPropertyThe type of layer property being modified.
Parameters
PropertyExpressionThe layer property to modify.
newValueThe new value to assign the property.
layerPostSucceeedsWhether 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.

◆ Test_Layer_BackAllocatedLayer_POST_Sink_InvalidTypes()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_POST_Sink_InvalidTypes ( )
inline

Definition at line 2001 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_POST_Sink_LayerViewReference()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_POST_Sink_LayerViewReference ( )
inline

Definition at line 2036 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_POST_Sink_Null()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_POST_Sink_Null ( )
inline

Definition at line 1943 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_POST_Sink_Reference_EmptyStringId()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_POST_Sink_Reference_EmptyStringId ( )
inline

Definition at line 1955 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_POST_Sink_Reference_NonExistantId()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_POST_Sink_Reference_NonExistantId ( )
inline

Definition at line 1962 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_POST_Sink_Reference_NullId()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_POST_Sink_Reference_NullId ( )
inline

Definition at line 1948 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_POST_Sink_ValidTypes()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_POST_Sink_ValidTypes ( )
inline

Definition at line 1969 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_POST_SourceId_Blank()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_POST_SourceId_Blank ( )
inline

Definition at line 2062 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_POST_SourceId_LossSet()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_POST_SourceId_LossSet ( )
inline

Definition at line 2047 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_POST_SourceId_Malformed()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_POST_SourceId_Malformed ( )
inline

Definition at line 2068 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_POST_SourceId_NonExistant()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_POST_SourceId_NonExistant ( )
inline

Definition at line 2074 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_POST_SourceId_Null()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_POST_SourceId_Null ( )
inline

Definition at line 2056 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_PUT_Sink_Inlined()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_PUT_Sink_Inlined ( )
inline

Definition at line 2137 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_PUT_Sink_InvalidTypes()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_PUT_Sink_InvalidTypes ( )
inline

Definition at line 2128 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_PUT_Sink_LayerViewReference()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_PUT_Sink_LayerViewReference ( )
inline

Definition at line 2144 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_PUT_Sink_Null()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_PUT_Sink_Null ( )
inline

Definition at line 2092 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_PUT_Sink_Reference_EmptyStringId()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_PUT_Sink_Reference_EmptyStringId ( )
inline

Definition at line 2102 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_PUT_Sink_Reference_NonExistantId()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_PUT_Sink_Reference_NonExistantId ( )
inline

Definition at line 2107 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_PUT_Sink_Reference_NullId()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_PUT_Sink_Reference_NullId ( )
inline

Definition at line 2097 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_PUT_Sink_ValidTypes()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_PUT_Sink_ValidTypes ( )
inline

Definition at line 2112 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_PUT_Source()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_PUT_Source ( )
inline

Definition at line 2087 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_PUT_SourceId()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_PUT_SourceId ( )
inline

Definition at line 2155 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_PUT_SourceId_Blank()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_PUT_SourceId_Blank ( )
inline

Definition at line 2168 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_PUT_SourceId_Malformed()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_PUT_SourceId_Malformed ( )
inline

Definition at line 2174 of file Test_Layer.cs.

◆ Test_Layer_BackAllocatedLayer_PUT_SourceId_Null()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.Test_Layer_BackAllocatedLayer_PUT_SourceId_Null ( )
inline

Definition at line 2162 of file Test_Layer.cs.

◆ Test_Layer_Saveable()

virtual void AnalyzeReTesting.Tests.Model.TestSuite_Layer< T >.Test_Layer_Saveable ( )
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>.

Definition at line 3415 of file Test_Layer.cs.

◆ Test_Resource_DeepCopy()

override void AnalyzeReTesting.Tests.Model.TestSuite_Layer< T >.Test_Resource_DeepCopy ( )
inlineinherited

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.

Definition at line 3506 of file Test_Layer.cs.

◆ Test_Resource_GET_AllPropertiesRecognized()

override void AnalyzeReTesting.Tests.Model.TestSuite_Layer< T >.Test_Resource_GET_AllPropertiesRecognized ( )
inlineinherited

Definition at line 3434 of file Test_Layer.cs.

◆ Test_Resource_GET_As_Inlined()

virtual void AnalyzeReTesting.Tests.Model.TestSuite_Layer< T >.Test_Resource_GET_As_Inlined ( )
inlinevirtualinherited

Definition at line 3426 of file Test_Layer.cs.

◆ Test_Resource_POST_FieldsIdOnly()

override void AnalyzeReTesting.Tests.Model.TestSuite_Layer< T >.Test_Resource_POST_FieldsIdOnly ( )
inlineinherited

Test that a user can post a resource and get back only the id using the omit query parameter.

Definition at line 3486 of file Test_Layer.cs.

◆ Test_Resource_ShallowCopy()

override void AnalyzeReTesting.Tests.Model.TestSuite_Layer< T >.Test_Resource_ShallowCopy ( )
inlineinherited

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.

Definition at line 3496 of file Test_Layer.cs.

Property Documentation

◆ ForbiddenSinkLayerTypesTestList

IEnumerable<IInjectableResource<ILayer> > AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.ForbiddenSinkLayerTypesTestList
staticget

A set of injectable test layers that are not valid to use as a sink.

Definition at line 1936 of file Test_Layer.cs.

◆ TestInjectableResource

override IInjectableResource<BackAllocatedLayer> AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.TestInjectableResource
getprotected

Definition at line 1922 of file Test_Layer.cs.

◆ UnsupportedBackAllocatedLayerSinkTypes

HashSet<Type> AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.UnsupportedBackAllocatedLayerSinkTypes
staticget

Types that cannot be the sink of a Back-Allocated layer.

Definition at line 1928 of file Test_Layer.cs.

◆ ValidSinkLayerTypesTestList

IEnumerable<IInjectableResource<ILayer> > AnalyzeReTesting.Tests.Model.TestSuite_Layer_BackAllocatedLayer.ValidSinkLayerTypesTestList
staticget

A set of injectable test layers that are valid to use as a sink.

Definition at line 1932 of file Test_Layer.cs.


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