Test the MonetaryUnit by playing with the premium on a Layer_WithTerms object. This is a necessary special case since the MonetaryUnit has considerable validation, but can only exist within another object (like a Layer definition)
More...
|
void | PUT_Attribute_Null< TProperty > (Expression< Func< T, TProperty > > PropertyExpression) |
| Ensure that when doing a PUT with the specified attribute null, the original value of the attribute is unchanged.
|
|
void | PUT_ListAttribute_Duplicates< TItem, TValue > (Expression< Func< T, ICollection< TItem > > > PropertyExpression, TValue valueToDuplicate, bool shouldSucceed) |
|
void | PUT_ListAttribute_Empty< TItem > (Expression< Func< T, ICollection< TItem > > > PropertyExpression, bool? shouldSucceed=null) |
|
void | PUT_Reference_EmptyStringId< TRefType > (Expression< Func< T, IReference< TRefType > > > PropertyExpression) |
| Modifies a reference with a empty string Id and verifies the correct error is returned.
|
|
void | PUT_Reference_NonExistantId< TRefType > (Expression< Func< T, IReference< TRefType > > > PropertyExpression) |
| Modifies a reference with a non-existent Id and verifies the correct error is returned.
|
|
void | PUT_Reference_NullId< TRefType > (Expression< Func< T, IReference< TRefType > > > PropertyExpression) |
| Modifies a reference with a null Id and verifies the correct error is returned.
|
|
void | PUT_ReferenceList_NonExistantId< TRefType > (Expression< Func< T, ICollection< IReference< TRefType > > > > PropertyExpression) |
| Modifies a reference list with a non-existent Id and verifies the correct error is returned.
|
|
void | PUT_StringAttribute_Empty (Expression< Func< T, string > > PropertyExpression, bool? shouldSucceed=null) |
| Ensure that when doing a PUT with the specified attribute set to an empty string, the PUT succeeds or fails with the correct error.
|
|
T | PUT_WithChanges_Fails (Func< T, T > modifyTestResource) |
| 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.
|
|
virtual T | PUT_WithChanges_Succeeds (Func< T, T > modifyTestResource) |
| POST a valid resource, then test doing a PUT on the resource after modifying it in some way, and assert that the PUT succeeds.
|
|
T | PUT_WithValue< TProperty > (Expression< Func< T, TProperty > > PropertyExpression, TProperty newValue, bool shouldSucceed) |
| POST a valid resource, then test doing a PUT on the resource after changing a specified attribute.
|
|
void | Test_MonetaryUnit_POST_CurrencyEmpty () |
|
void | Test_MonetaryUnit_POST_CurrencyInvalidISO () |
|
void | Test_MonetaryUnit_POST_CurrencyNull () |
|
void | Test_MonetaryUnit_POST_CurrencyTooLong () |
|
void | Test_MonetaryUnit_POST_CurrencyTooShort () |
|
void | Test_MonetaryUnit_POST_CurrencyValidISO () |
|
void | Test_MonetaryUnit_POST_Date () |
|
void | Test_MonetaryUnit_POST_DateAndRate () |
| Date and Rate are mutually exclusive.
|
|
void | Test_MonetaryUnit_POST_HighPrecision () |
|
void | Test_MonetaryUnit_POST_Infinity () |
|
void | Test_MonetaryUnit_POST_MaxValue () |
|
void | Test_MonetaryUnit_POST_MinValue () |
|
void | Test_MonetaryUnit_POST_NaN () |
|
void | Test_MonetaryUnit_POST_Negative () |
|
void | Test_MonetaryUnit_POST_NegativeInfinity () |
|
void | Test_MonetaryUnit_POST_Rate () |
|
void | Test_MonetaryUnit_POST_Rate_Negative () |
|
void | Test_MonetaryUnit_POST_Rate_No_RateCurrency () |
|
void | Test_MonetaryUnit_POST_Rate_Zero () |
|
void | Test_MonetaryUnit_POST_Zero () |
|
void | Test_MonetaryUnit_PUT_CurrencyEmpty () |
|
void | Test_MonetaryUnit_PUT_CurrencyInvalidISO () |
|
void | Test_MonetaryUnit_PUT_CurrencyNull () |
|
void | Test_MonetaryUnit_PUT_CurrencyTooLong () |
|
void | Test_MonetaryUnit_PUT_CurrencyTooShort () |
|
void | Test_MonetaryUnit_PUT_CurrencyValidISO () |
|
void | Test_MonetaryUnit_PUT_Date () |
|
void | Test_MonetaryUnit_PUT_DateAndRate () |
| Date and Rate are mutually exclusive.
|
|
void | Test_MonetaryUnit_PUT_HighPrecision () |
|
void | Test_MonetaryUnit_PUT_Infinity () |
|
void | Test_MonetaryUnit_PUT_MaxValue () |
|
void | Test_MonetaryUnit_PUT_MinValue () |
|
void | Test_MonetaryUnit_PUT_NaN () |
|
void | Test_MonetaryUnit_PUT_Negative () |
|
void | Test_MonetaryUnit_PUT_NegativeInfinity () |
|
void | Test_MonetaryUnit_PUT_Rate () |
|
void | Test_MonetaryUnit_PUT_Rate_Negative () |
|
void | Test_MonetaryUnit_PUT_Rate_Zero () |
|
void | Test_MonetaryUnit_PUT_Zero () |
|
void | Test_MonetaryUnit_ToString () |
|
virtual void | Test_Resource_PUT_CreatedAndModified () |
|
virtual void | Test_Resource_PUT_Description () |
|
virtual void | Test_Resource_PUT_Description_Blank () |
|
virtual void | Test_Resource_PUT_Description_Null () |
|
virtual void | Test_Resource_PUT_Metadata_Empty () |
|
virtual void | Test_Resource_PUT_Metadata_InvalidValues () |
|
virtual void | Test_Resource_PUT_Metadata_MixedTypes () |
|
virtual void | Test_Resource_PUT_Metadata_Null () |
|
virtual void | Test_Resource_PUT_NoChanges () |
|
Test the MonetaryUnit by playing with the premium on a Layer_WithTerms object. This is a necessary special case since the MonetaryUnit has considerable validation, but can only exist within another object (like a Layer definition)
Definition at line 24 of file Test_MonetaryUnit.cs.
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.
- Template Parameters
-
TProperty | The type of the property being modified. |
- Parameters
-
PropertyExpression | An expression indicating the T property to modify. |
- Exceptions
-
ArgumentException | Can only be used on properties whose default type is null. |
Definition at line 176 of file BaseMutableResourceTestSuite.cs.