2using System.Collections.Generic;
12using Microsoft.VisualStudio.TestTools.UnitTesting;
17using TestCategory =
NUnit.Framework.CategoryAttribute;
31 #region Set Up and Configuration
32 private const string TypeName =
"ExchangeRateTable";
37 #endregion Set Up and Configuration
49 POST_StringAttribute_Empty(
e =>
e.base_currency);
51 #endregion base_currency
60 GenericTest.POST_InvalidResourceWithData_Fails(TestResource,
61 "\"Currency\",\"Date\",\"Rate\"",
66 #region Test Currencies List
74 "The exchange rate table has no unique currencies list.");
76 "The exchange rate table unique currencies list was empty.");
78 Console.WriteLine(
"Exchange Rate Table unique currencies:\n" +
86 #endregion Test Currencies List
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 Exchange_Rate_Table
Exposes sample resource objects, with built-in methods for injecting dependencies.
IInjectableResource< ExchangeRateTable > ExchangeRateTable
override IResourceCollection< ExchangeRateTable > collection_source
void Test_ExchangeRateTable_Currencies()
void Test_ExchangeRateTable_POST_DataEmpty()
override IInjectableResource< ExchangeRateTable > TestInjectableResource
void Test_ExchangeRateTable_POST_BaseCurrency_Null()
void Test_ExchangeRateTable_POST_BaseCurrency_Blank()
Generic Unit test implementations that will test REST methods on arbitrary resources.
Describes a collection of resources which can be listed.
API methods / requests made available to the user.
static readonly ResourceCollection< ExchangeRateTable > ExchangeRateTables
The collection of ExchangeRateTables on the server.
A table containing exchange rate information.
Exception raised when the commit process fails.