2using System.Collections.Generic;
10using Microsoft.VisualStudio.TestTools.UnitTesting;
14using TestCategory =
NUnit.Framework.CategoryAttribute;
30 #region Set Up and Configuration
31 private const string TypeName =
"ExchangeRateProfile";
34 #endregion Set Up and Configuration
37 #region exchange_rate_table
58 #endregion exchange_rate_table
60 #region rate_selection_order
79 new ExchangeRateDateRule
81 date = DateTime.UtcNow,
82 monetary_unit_overrides = new List<string>{
"Rate",
"Date"}
93 new ExchangeRateDateRule
95 date = DateTime.UtcNow,
96 monetary_unit_overrides = new List<string>{
"rate",
"DATE"}
107 new ExchangeRateDateRule
109 date = DateTime.UtcNow,
110 monetary_unit_overrides = new List<string>{
"rate",
"asdf"}
115 #endregion rate_selection_order
Tests for a stored resource collection which do not require an instance of that resource to be define...
Exposes sample resource objects, with built-in methods for injecting dependencies.
IInjectableResource< ExchangeRateProfile > ExchangeRateProfile
override IResourceCollection< ExchangeRateProfile > collection_source
override bool PUT_Allowed
void Test_ExchangeRateProfile_POST_ExchangeRateTable_Reference_EmptyStringId()
void Test_ExchangeRateProfile_POST_RateSelectionOrder_Empty()
void Test_ExchangeRateProfile_POST_RateSelectionOrder_Null()
override IInjectableResource< ExchangeRateProfile > TestInjectableResource
void Test_ExchangeRateProfile_POST_ExchangeRateTable_Reference_NonExistantId()
void Test_ExchangeRateProfile_POST_RateSelectionOrder_ValidOverrides()
void Test_ExchangeRateProfile_POST_ExchangeRateTable_Null()
void Test_ExchangeRateProfile_POST_ExchangeRateTable_Reference_NullId()
void Test_ExchangeRateProfile_POST_RateSelectionOrder_InvalidOverrides_CaseSensitive()
void Test_ExchangeRateProfile_POST_RateSelectionOrder_InvalidOverrides()
Describes a collection of resources which can be listed.
API methods / requests made available to the user.
static readonly ResourceCollection< ExchangeRateProfile > ExchangeRateProfiles
The collection of ExchangeRateProfiles on the server.
A rule indicating that the latest available exchange rate should be used.