8using Microsoft.VisualStudio.TestTools.UnitTesting;
12using TestCategory =
NUnit.Framework.CategoryAttribute;
18 [
Obsolete(
"This tests a now obsolete class for backwards compatibility purposes.")]
25 [
Obsolete(
"This tests a now obsolete class for backwards compatibility purposes.")]
28 #region Set Up and Configuration
29 private const string TypeName =
"VendorPortfolioAnalysis";
32 #endregion Set Up and Configuration
36 [
Obsolete(
"This tests a now obsolete class for backwards compatibility purposes.")]
39 #region Set Up and Configuration
40 private const string TypeName =
"VendorTreatyAnalysis";
43 #endregion Set Up and Configuration
48 [
Obsolete(
"This tests a now obsolete class for backwards compatibility purposes.")]
51 private const string TypeName =
"Analysis";
101 #endregion identifier
193 #endregion identifier
Tests for a stored resource collection which do not require an instance of that resource to be define...
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...
void POST_StringAttribute_Empty(Expression< Func< T, string > > PropertyExpression, bool? shouldSucceed=null)
Post a resource with the specified string set to an empty string.
Exposes sample resource objects, with built-in methods for injecting dependencies.
IInjectableResource< VendorTreatyAnalysis > Analysis_VendorTreatyAnalysis
IInjectableResource< VendorPortfolioAnalysis > Analysis_VendorPortfolioAnalysis
IInjectableResource< Agent > Agent
override IResourceCollection< Analysis > collection_source
override IInjectableResource< VendorPortfolioAnalysis > TestInjectableResource
override IInjectableResource< VendorTreatyAnalysis > TestInjectableResource
Includes tests that affect all types of Analyses.
virtual void Test_Analysis_POST_Host_Null()
virtual void Test_Analysis_PUT_Vendor()
virtual void Test_Analysis_PUT_Host_Blank()
virtual void Test_Analysis_PUT_Source_Blank()
virtual void Test_Analysis_POST_Host_Blank()
virtual void Test_Analysis_PUT_Identifier_Null()
virtual void Test_Analysis_POST_Vendor_Null()
virtual void Test_Analysis_PUT_Host()
virtual void Test_Analysis_PUT_Agent_Reference_NullId()
virtual void Test_Analysis_POST_Identifier_Blank()
virtual void Test_Analysis_PUT_Agent_Null()
virtual void Test_Analysis_PUT_Source()
virtual void Test_Analysis_POST_Agent_Reference_NonExistantId()
virtual void Test_Analysis_POST_Source_Blank()
virtual void Test_Analysis_POST_Vendor_Blank()
virtual void Test_Analysis_PUT_Source_Null()
virtual void Test_Analysis_PUT_Agent()
virtual void Test_Analysis_POST_Agent_Reference_EmptyStringId()
virtual void Test_Analysis_PUT_Identifier()
virtual void Test_Analysis_PUT_Identifier_Blank()
virtual void Test_Analysis_POST_Identifier_Null()
virtual void Test_Analysis_PUT_Host_Null()
virtual void Test_Analysis_POST_Source_Null()
virtual void Test_Analysis_PUT_Vendor_Null()
virtual void Test_Analysis_POST_Agent_Reference_NullId()
virtual void Test_Analysis_PUT_Agent_Reference_EmptyStringId()
virtual void Test_Analysis_PUT_Agent_Reference_NonExistantId()
virtual void Test_Analysis_PUT_Vendor_Blank()
virtual void Test_Analysis_POST_Agent_Null()
Describes a collection of resources which can be listed.
API methods / requests made available to the user.
static readonly ResourceCollection< Analysis > Analyses
The collection of Analyses on the server.
Represents the metadata for a DataAgent analysis entity imported from a vendor.
IReference< T > AsReference
A reference to the posted resource.