public async Task TestTestListUsage()
        {
            // Parameters for the API call
            Standard.Models.ProductCodeEnum?productCode = null;
            string startDate          = null;
            string endDate            = null;
            string includeSubAccounts = null;

            // Perform API call
            string result = null;

            try
            {
                result = await controller.CreateListUsageAsync(productCode, startDate, endDate, includeSubAccounts);
            }
            catch (APIException) {};

            // Test response code
            Assert.AreEqual(200, httpCallBackHandler.Response.StatusCode,
                            "Status should be 200");

            // Test headers
            Dictionary <string, string> headers = new Dictionary <string, string>();

            headers.Add("Content-Type", "application/json");

            Assert.IsTrue(TestHelper.AreHeadersProperSubsetOf(
                              headers, httpCallBackHandler.Response.Headers),
                          "Headers should match");
        }
Beispiel #2
0
        public async Task TestTestListUsage()
        {
            // Parameters for the API call
            Standard.Models.ProductCodeEnum?productCode = null;
            string startDate          = null;
            string endDate            = null;
            string includeSubAccounts = null;

            // Perform API call
            string result = null;

            try
            {
                result = await controller.CreateListUsageAsync(productCode, startDate, endDate, includeSubAccounts);
            }
            catch (APIException) {};

            // Test response code
            Assert.AreEqual(200, httpCallBackHandler.Response.StatusCode,
                            "Status should be 200");
        }