2using System.Collections.Generic;
 
   11using Microsoft.VisualStudio.TestTools.UnitTesting;
 
   15using TestCategory = 
NUnit.Framework.CategoryAttribute;
 
   31        #region Set Up and Configuration 
   32        private const string TypeName = 
"StaticSimulation";
 
   37        #endregion Set Up and Configuration 
   39        [
TestMethod, TestCategory(TypeName), TestCategory(
"Skipped")]
 
   42            Skip.
Indefinitely(
"Bug ARE-5472 - Simulations don't support search by description.");
 
   43            base.Test_Resource_Search();
 
 
   52            invalidTrialCount.trial_count = 9;
 
 
   56        #endregion trial_count 
   60        [
Obsolete(
"This tests a now obsolete property for backwards compatibility purposes.")]
 
   66        [
Obsolete(
"This tests a now obsolete property for backwards compatibility purposes.")]
 
   72        [
Obsolete(
"This tests a now obsolete property for backwards compatibility purposes.")]
 
   87        #endregion trial_count 
   91        [
Obsolete(
"This tests a now obsolete property for backwards compatibility purposes.")]
 
   97        [
Obsolete(
"This tests a now obsolete property for backwards compatibility purposes.")]
 
  103        [
Obsolete(
"This tests a now obsolete property for backwards compatibility purposes.")]
 
  109        [
Obsolete(
"This tests a now obsolete property for backwards compatibility purposes.")]
 
  121            GenericTest.POST_ValidResourceWithData(TestResource,
 
  122                "\"TrialId\",\"Day\",\"EventId\"");
 
 
 
  127    #region Abstract Base Simulation Tests 
  137        private const string TypeName = 
"Simulation";
 
  149            POST_StringAttribute_Empty(
s => 
s.name);
 
 
  166        #endregion start_date 
  168        #region event_catalogs 
  184        #endregion event_catalogs 
  202            PUT_StringAttribute_Empty(
s => 
s.name);
 
 
  220        #endregion start_date 
  222        #region event_catalogs 
  245        #endregion event_catalogs 
 
  248    #endregion Abstract Base Simulation Tests 
Tests for a stored resource collection which do not require an instance of that resource to be define...
 
Exposes the various sample CSV files as strings.
 
static string Static_Simulation_Data
 
Exposes sample resource objects, with built-in methods for injecting dependencies.
 
IInjectableResource< StaticSimulation > Simulation_StaticSimulation
 
Tests that do not require a Simulation instance.
 
override IResourceCollection< Simulation > collection_source
 
StaticSimulation tests that do not rely on the /data endpoint.
 
void Test_StaticSimulation_PUT_Notes_SpecialCharactersInKey()
 
void Test_StaticSimulation_POST_Notes_SpecialCharactersInKey()
 
void Test_StaticSimulation_PUT_Notes()
 
void Test_StaticSimulation_POST_TrialCount_LessThanLargestTrialCountInData()
 
void Test_StaticSimulation_POST_Notes_Null()
 
void Test_StaticSimulation_PUT_TrialCount()
 
override void Test_Resource_Search()
 
void Test_StaticSimulation_POST_Notes_Empty()
 
void Test_StaticSimulation_PUT_Notes_Empty()
 
override IInjectableResource< StaticSimulation > TestInjectableResource
 
void Test_StaticSimulation_POST_DataEmpty()
 
void Test_StaticSimulation_PUT_Notes_Null()
 
Test for Simulations that have a data endpoint.
 
virtual void Test_Simulation_PUT_Name()
 
virtual void Test_Simulation_POST_Name_Blank()
 
virtual void Test_Layer_PUT_StartDate_MaxValue()
 
virtual void Test_Simulation_POST_Name_Null()
 
virtual void Test_Simulation_PUT_EventCatalogs()
 
virtual void Test_Simulation_PUT_EventCatalogs_Null()
 
virtual void Test_Simulation_PUT_EventCatalogs_Invalid()
 
virtual void Test_Simulation_POST_EventCatalogs_Empty()
 
virtual void Test_Layer_PUT_StartDate_MinValue()
 
virtual void Test_Simulation_PUT_Name_Null()
 
virtual void Test_Simulation_POST_EventCatalogs_Null()
 
virtual void Test_Simulation_PUT_EventCatalogs_Empty()
 
virtual void Test_Layer_POST_StartDate_MaxValue()
 
virtual void Test_Simulation_PUT_Name_Blank()
 
virtual void Test_Simulation_POST_EventCatalogs_Invalid()
 
virtual void Test_Layer_POST_StartDate_MinValue()
 
Generic Unit test implementations that will test REST methods on arbitrary resources.
 
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< Simulation > Simulations
The collection of Simulations on the server.
 
Exception raised when the commit process fails.
 
Representation of a simulation of a set of trials each representing an event occurrence sequence.
 
A pre-simulated representation of a Simulation (SimGrid).
 
Describes an APIResource class that adds a "/data" sub-resource, since this functionality is common t...