C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested 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_Nested_POST_Sink_EveryType ()
 
void Test_Layer_Nested_POST_Sink_Inlined ()
 
void Test_Layer_Nested_POST_Sink_InvalidType ()
 
void Test_Layer_Nested_POST_Sink_LayerViewReference ()
 
void Test_Layer_Nested_POST_Sink_Null ()
 
void Test_Layer_Nested_POST_Sink_Reference_EmptyStringId ()
 
void Test_Layer_Nested_POST_Sink_Reference_NonExistantId ()
 
void Test_Layer_Nested_POST_Sink_Reference_NullId ()
 
void Test_Layer_Nested_POST_Sources_ContainsSink ()
 
void Test_Layer_Nested_POST_Sources_Duplicates ()
 
void Test_Layer_Nested_POST_Sources_Empty ()
 
void Test_Layer_Nested_POST_Sources_EveryType ()
 
void Test_Layer_Nested_POST_Sources_Inlined ()
 
void Test_Layer_Nested_POST_Sources_Invalid ()
 
void Test_Layer_Nested_POST_Sources_LayerViewReference ()
 
void Test_Layer_Nested_POST_Sources_Null ()
 
void Test_Layer_Nested_PUT_Sink ()
 
void Test_Layer_Nested_PUT_Sink_EveryType ()
 
void Test_Layer_Nested_PUT_Sink_Inlined ()
 
void Test_Layer_Nested_PUT_Sink_InvalidType ()
 
void Test_Layer_Nested_PUT_Sink_LayerViewReference ()
 
void Test_Layer_Nested_PUT_Sink_Null ()
 
void Test_Layer_Nested_PUT_Sink_Reference_EmptyStringId ()
 
void Test_Layer_Nested_PUT_Sink_Reference_NonExistantId ()
 
void Test_Layer_Nested_PUT_Sink_Reference_NullId ()
 
void Test_Layer_Nested_PUT_Sources ()
 
void Test_Layer_Nested_PUT_Sources_Duplicates ()
 
void Test_Layer_Nested_PUT_Sources_Empty ()
 
void Test_Layer_Nested_PUT_Sources_EveryType ()
 
void Test_Layer_Nested_PUT_Sources_Inlined ()
 
void Test_Layer_Nested_PUT_Sources_Invalid ()
 
void Test_Layer_Nested_PUT_Sources_LayerViewReference ()
 
void Test_Layer_Nested_PUT_Sources_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< NestedTestInjectableResource [get]
 
static HashSet< Type > UnsupportedNestedSinkTypes [get]
 Types that cannot be the sink of a Nested 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 693 of file Test_Layer.cs.

Inheritance diagram for AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested:
AnalyzeReTesting.Tests.Model.TestSuite_Layer< Nested >

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_Nested_POST_Sink_EveryType()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_POST_Sink_EveryType ( )
inline

Definition at line 746 of file Test_Layer.cs.

◆ Test_Layer_Nested_POST_Sink_Inlined()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_POST_Sink_Inlined ( )
inline

Definition at line 754 of file Test_Layer.cs.

◆ Test_Layer_Nested_POST_Sink_InvalidType()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_POST_Sink_InvalidType ( )
inline

Definition at line 770 of file Test_Layer.cs.

◆ Test_Layer_Nested_POST_Sink_LayerViewReference()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_POST_Sink_LayerViewReference ( )
inline

Definition at line 762 of file Test_Layer.cs.

◆ Test_Layer_Nested_POST_Sink_Null()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_POST_Sink_Null ( )
inline

Definition at line 717 of file Test_Layer.cs.

◆ Test_Layer_Nested_POST_Sink_Reference_EmptyStringId()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_POST_Sink_Reference_EmptyStringId ( )
inline

Definition at line 732 of file Test_Layer.cs.

◆ Test_Layer_Nested_POST_Sink_Reference_NonExistantId()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_POST_Sink_Reference_NonExistantId ( )
inline

Definition at line 739 of file Test_Layer.cs.

◆ Test_Layer_Nested_POST_Sink_Reference_NullId()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_POST_Sink_Reference_NullId ( )
inline

Definition at line 722 of file Test_Layer.cs.

◆ Test_Layer_Nested_POST_Sources_ContainsSink()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_POST_Sources_ContainsSink ( )
inline

Definition at line 808 of file Test_Layer.cs.

◆ Test_Layer_Nested_POST_Sources_Duplicates()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_POST_Sources_Duplicates ( )
inline

Definition at line 800 of file Test_Layer.cs.

◆ Test_Layer_Nested_POST_Sources_Empty()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_POST_Sources_Empty ( )
inline

Definition at line 789 of file Test_Layer.cs.

◆ Test_Layer_Nested_POST_Sources_EveryType()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_POST_Sources_EveryType ( )
inline

Definition at line 816 of file Test_Layer.cs.

◆ Test_Layer_Nested_POST_Sources_Inlined()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_POST_Sources_Inlined ( )
inline

Definition at line 822 of file Test_Layer.cs.

◆ Test_Layer_Nested_POST_Sources_Invalid()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_POST_Sources_Invalid ( )
inline

Definition at line 795 of file Test_Layer.cs.

◆ Test_Layer_Nested_POST_Sources_LayerViewReference()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_POST_Sources_LayerViewReference ( )
inline

Definition at line 829 of file Test_Layer.cs.

◆ Test_Layer_Nested_POST_Sources_Null()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_POST_Sources_Null ( )
inline

Definition at line 784 of file Test_Layer.cs.

◆ Test_Layer_Nested_PUT_Sink()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_PUT_Sink ( )
inline

Definition at line 842 of file Test_Layer.cs.

◆ Test_Layer_Nested_PUT_Sink_EveryType()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_PUT_Sink_EveryType ( )
inline

Definition at line 867 of file Test_Layer.cs.

◆ Test_Layer_Nested_PUT_Sink_Inlined()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_PUT_Sink_Inlined ( )
inline

Definition at line 875 of file Test_Layer.cs.

◆ Test_Layer_Nested_PUT_Sink_InvalidType()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_PUT_Sink_InvalidType ( )
inline

Definition at line 890 of file Test_Layer.cs.

◆ Test_Layer_Nested_PUT_Sink_LayerViewReference()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_PUT_Sink_LayerViewReference ( )
inline

Definition at line 882 of file Test_Layer.cs.

◆ Test_Layer_Nested_PUT_Sink_Null()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_PUT_Sink_Null ( )
inline

Definition at line 847 of file Test_Layer.cs.

◆ Test_Layer_Nested_PUT_Sink_Reference_EmptyStringId()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_PUT_Sink_Reference_EmptyStringId ( )
inline

Definition at line 857 of file Test_Layer.cs.

◆ Test_Layer_Nested_PUT_Sink_Reference_NonExistantId()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_PUT_Sink_Reference_NonExistantId ( )
inline

Definition at line 862 of file Test_Layer.cs.

◆ Test_Layer_Nested_PUT_Sink_Reference_NullId()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_PUT_Sink_Reference_NullId ( )
inline

Definition at line 852 of file Test_Layer.cs.

◆ Test_Layer_Nested_PUT_Sources()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_PUT_Sources ( )
inline

Definition at line 904 of file Test_Layer.cs.

◆ Test_Layer_Nested_PUT_Sources_Duplicates()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_PUT_Sources_Duplicates ( )
inline

Definition at line 925 of file Test_Layer.cs.

◆ Test_Layer_Nested_PUT_Sources_Empty()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_PUT_Sources_Empty ( )
inline

Definition at line 915 of file Test_Layer.cs.

◆ Test_Layer_Nested_PUT_Sources_EveryType()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_PUT_Sources_EveryType ( )
inline

Definition at line 931 of file Test_Layer.cs.

◆ Test_Layer_Nested_PUT_Sources_Inlined()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_PUT_Sources_Inlined ( )
inline

Definition at line 937 of file Test_Layer.cs.

◆ Test_Layer_Nested_PUT_Sources_Invalid()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_PUT_Sources_Invalid ( )
inline

Definition at line 920 of file Test_Layer.cs.

◆ Test_Layer_Nested_PUT_Sources_LayerViewReference()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_PUT_Sources_LayerViewReference ( )
inline

Definition at line 944 of file Test_Layer.cs.

◆ Test_Layer_Nested_PUT_Sources_Null()

void AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.Test_Layer_Nested_PUT_Sources_Null ( )
inline

Definition at line 910 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_Nested.ForbiddenSinkLayerTypesTestList
staticget

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

Definition at line 710 of file Test_Layer.cs.

◆ TestInjectableResource

override IInjectableResource<Nested> AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.TestInjectableResource
getprotected

Definition at line 697 of file Test_Layer.cs.

◆ UnsupportedNestedSinkTypes

HashSet<Type> AnalyzeReTesting.Tests.Model.TestSuite_Layer_Nested.UnsupportedNestedSinkTypes
staticget

Types that cannot be the sink of a Nested layer.

Definition at line 703 of file Test_Layer.cs.

◆ ValidSinkLayerTypesTestList

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

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

Definition at line 706 of file Test_Layer.cs.


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