1using System.Collections.Generic;
9using Microsoft.VisualStudio.TestTools.UnitTesting;
13using TestCategory =
NUnit.Framework.CategoryAttribute;
27 #region Set Up and Configuration
28 private const string TypeName =
"StaticPortfolio";
32 #endregion Set Up and Configuration
87 #region Abstract Base Test Class
91 private const string TypeName =
"Portfolio";
128 #endregion Abstract Base Test Class
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.
List< IInjectableResource< ILayer > > AllSaveableLayerTypesTestList
A list of one of each type of layer that can be POSTed. Layer types that cannot be posted on their ow...
IInjectableResource< StaticPortfolio > Portfolio
static string Valid_NonExistant_UUID
override IResourceCollection< Portfolio > collection_source
void Test_StaticPortfolio_PUT_Layers_Null()
void Test_StaticPortfolio_PUT_Layers_Invalid()
void Test_StaticPortfolio_PUT_Layers()
void Test_StaticPortfolio_POST_Layers_Empty()
void Test_StaticPortfolio_PUT_Layers_Empty()
override IInjectableResource< StaticPortfolio > TestInjectableResource
void Test_StaticPortfolio_POST_Layers_Null()
void Test_StaticPortfolio_POST_Layers_Invalid()
virtual void Test_Portfolio_PUT_Name_Null()
virtual void Test_Portfolio_POST_Name_Blank()
virtual void Test_Portfolio_POST_Name_Null()
virtual void Test_Portfolio_PUT_Name()
virtual void Test_Portfolio_PUT_Name_Blank()
Describes a collection of resources which can be listed.
API methods / requests made available to the user.
static readonly ResourceCollection< Portfolio > Portfolios
The collection of Portfolios on the server.
Representation of a portfolio.