\r\n

51Degrees Pipeline .NET  4.4

51Degrees Pipeline for .NET

FiftyOne.Pipeline.JsonBuilderElementTests.JsonBuilderElementTests Class Reference

Classes

class  EmptyAspect
class  JsonBuilder
class  JsonData

Public Types

enum  JsPropertyType { JavaScript, IAspectPropertyValue, AspectPropertyValue }
enum  TypeToBeTested {
  String, JavaScript, List, APV_String,
  APV_JavaScript, APV_List
}
Used by the serialization tests below More...

Public Member Functions

void  Init ()
void  JsonBuilder_ValidJson ()
Check that the JSON produced by the JsonBuilder is valid. More...
void  JsonBuilder_JsProperty (JsPropertyType propertyType)
Check that the JSON element removes JavaScript properties from the response after max number of iterations has been reached. More...
void  JsonBuilder_MaxIterations ()
Check that the JSON element removes JavaScript properties from the response after max number of iterations has been reached. More...
void  JsonBuilder_ElementExclusionlist ()
Check that entries will not appear in the output for elements in the exclusion list. More...
void  JsonBuilder_NestedProperties ()
Check that nested properties are serialised as expected More...
void  JsonBuilder_DelayedExecution (bool delayExecution, bool propertyValueNull, JsPropertyType jsPropertyType)
Check that delayed execution and evidence properties values are populated correctly. More...
void  JsonBuilder_MultipleEvidenceProperties ()
Check that delayed execution and evidence properties values are populated correctly when a property has multiple evidence properties More...
void  JsonBuilder_LazyLoading ()
Check that the JSON produced by the JsonBuilder is correct when lazy loading is enabled. More...
void  JsonBuilder_Serialization_Text (string valueOfProperty, TypeToBeTested typeToBeTested)
Verify that various types and values are serialized correctly. More...
void  JsonBuilder_Serialization_PropertyValues ()
Test that various values are serialized properly. More...
void  JsonBuilder_VerifyErrorHandling ()
Check that error handling works as expected when a serialization error occurs. More...

Static Public Member Functions

static IEnumerable< object[]>  SerializationTestGenerator ()

Properties

static IEnumerable< object[]>  GetDelayedExecutionTestParameters [get]

Member Enumeration Documentation

Member Function Documentation

◆ JsonBuilder_DelayedExecution()

void FiftyOne.Pipeline.JsonBuilderElementTests.JsonBuilderElementTests.JsonBuilder_DelayedExecution ( bool   delayExecution,
bool   propertyValueNull,
JsPropertyType   jsPropertyType  
)

Check that delayed execution and evidence properties values are populated correctly.

◆ JsonBuilder_ElementExclusionlist()

void FiftyOne.Pipeline.JsonBuilderElementTests.JsonBuilderElementTests.JsonBuilder_ElementExclusionlist ( )

Check that entries will not appear in the output for elements in the exclusion list.

◆ JsonBuilder_JsProperty()

void FiftyOne.Pipeline.JsonBuilderElementTests.JsonBuilderElementTests.JsonBuilder_JsProperty ( JsPropertyType   propertyType )

Check that the JSON element removes JavaScript properties from the response after max number of iterations has been reached.

◆ JsonBuilder_LazyLoading()

void FiftyOne.Pipeline.JsonBuilderElementTests.JsonBuilderElementTests.JsonBuilder_LazyLoading ( )

Check that the JSON produced by the JsonBuilder is correct when lazy loading is enabled.

◆ JsonBuilder_MaxIterations()

void FiftyOne.Pipeline.JsonBuilderElementTests.JsonBuilderElementTests.JsonBuilder_MaxIterations ( )

Check that the JSON element removes JavaScript properties from the response after max number of iterations has been reached.

◆ JsonBuilder_MultipleEvidenceProperties()

void FiftyOne.Pipeline.JsonBuilderElementTests.JsonBuilderElementTests.JsonBuilder_MultipleEvidenceProperties ( )

Check that delayed execution and evidence properties values are populated correctly when a property has multiple evidence properties

◆ JsonBuilder_NestedProperties()

void FiftyOne.Pipeline.JsonBuilderElementTests.JsonBuilderElementTests.JsonBuilder_NestedProperties ( )

Check that nested properties are serialised as expected

◆ JsonBuilder_Serialization_PropertyValues()

void FiftyOne.Pipeline.JsonBuilderElementTests.JsonBuilderElementTests.JsonBuilder_Serialization_PropertyValues ( )

Test that various values are serialized properly.

For tests on string-based values, see the

See also
Serialization_Text

tests.

◆ JsonBuilder_Serialization_Text()

void FiftyOne.Pipeline.JsonBuilderElementTests.JsonBuilderElementTests.JsonBuilder_Serialization_Text ( string   valueOfProperty,
TypeToBeTested   typeToBeTested  
)

Verify that various types and values are serialized correctly.

Parameters
valueOfProperty - The string representation of the value to serialize
typeToBeTested - The type of the value to be serialized

◆ JsonBuilder_ValidJson()

void FiftyOne.Pipeline.JsonBuilderElementTests.JsonBuilderElementTests.JsonBuilder_ValidJson ( )

Check that the JSON produced by the JsonBuilder is valid.

◆ JsonBuilder_VerifyErrorHandling()

void FiftyOne.Pipeline.JsonBuilderElementTests.JsonBuilderElementTests.JsonBuilder_VerifyErrorHandling ( )

Check that error handling works as expected when a serialization error occurs.