7using Microsoft.VisualStudio.TestTools.UnitTesting;
11using TestCategory =
NUnit.Framework.CategoryAttribute;
17 [
Obsolete(
"This tests a now obsolete class for backwards compatibility purposes.")]
24 [
Obsolete(
"This tests a now obsolete class for backwards compatibility purposes.")]
27 #region Set Up and Configuration
28 private const string TypeName =
"Agent";
31 #endregion Set Up and Configuration
43 POST_StringAttribute_Empty(
a =>
a.hostname);
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...
Exposes sample resource objects, with built-in methods for injecting dependencies.
IInjectableResource< Agent > Agent
override IResourceCollection< Agent > collection_source
void Test_Agent_PUT_Hostname()
void Test_Agent_POST_Hostname_Null()
void Test_Agent_POST_Hostname_Blank()
void Test_Agent_PUT_Hostname_Null()
override IInjectableResource< Agent > TestInjectableResource
void Test_Agent_PUT_Hostname_Blank()
Describes a collection of resources which can be listed.
API methods / requests made available to the user.
static readonly ResourceCollection< Agent > Agents
The collection of Agents on the server.