9using Microsoft.VisualStudio.TestTools.UnitTesting;
 
   14using TestCategory = 
NUnit.Framework.CategoryAttribute;
 
   53        private const string TypeName = 
"OptimizationFunction";
 
   63            base.Test_Resource_POST_ExistingId();
 
 
   94        #region Disabled Tests 
   95        [
TestMethod, TestCategory(TypeName), TestCategory(
"Skipped")]
 
   99            base.Test_Resource_POST_MetaData_MixedTypes();
 
 
  101        [
TestMethod, TestCategory(TypeName), TestCategory(
"Skipped")]
 
  105            base.Test_Resource_POST_MetaData_MixedTypes();
 
 
  107        [
TestMethod, TestCategory(TypeName), TestCategory(
"Skipped")]
 
  111            base.Test_Resource_Search();
 
 
  113        #endregion Disabled Tests 
 
Tests for a stored resource collection which do not require an instance of that resource to be define...
 
void POST_StringAttribute_Empty(Expression< Func< T, string > > PropertyExpression, bool? shouldSucceed=null)
Post a resource with the specified string set to an empty string.
 
IInjectableResource< T > TestInjectableResource
Deriving class must override the TestResourceFactory to return a disposable POSTable test resource th...
 
Exposes sample resource objects, with built-in methods for injecting dependencies.
 
IInjectableResource< ProjectionFunction > ProjectionFunction
Sample comes from ARE-2652.
 
IInjectableResource< MetricsFunction > MetricsFunction
 
virtual void Test_OptimizationFunction_POST_Src_Null()
 
virtual void Test_OptimizationFunction_POST_Name_Blank()
 
virtual void Test_OptimizationFunction_POST_Name_Null()
 
override void Test_Resource_POST_ExistingId()
 
override void Test_Resource_POST_MetaData_MixedTypes()
 
override void Test_Resource_POST_Metadata_InvalidValues()
 
override void Test_Resource_Search()
All resources should support searching in a few fundamental ways.
 
virtual void Test_OptimizationFunction_POST_Src_Blank()
 
override IResourceCollection< MetricsFunction > collection_source
 
override bool PUT_Allowed
 
override IInjectableResource< MetricsFunction > TestInjectableResource
 
override IResourceCollection< ProjectionFunction > collection_source
 
override bool PUT_Allowed
 
override IInjectableResource< ProjectionFunction > TestInjectableResource
 
Class used in unit tests to mark tests as skipped by using Assert.Inconclusive() method.
 
static void Indefinitely(string ticket=null)
Skip the specified test.
 
Describes a collection of resources which can be listed.
 
API methods / requests made available to the user.
 
static readonly ResourceCollection< ProjectionFunction > ProjectionFunctions
The collection of optimization projection functions on the server.
 
static readonly ResourceCollection< MetricsFunction > MetricsFunctions
The collection of optimization metrics functions on the server.
 
The base class for custom optimization functions.
 
T Unposted
The unPOSTed resource definition.