Example #1
0
        public async Task TestGetOfferIndexFile_WithoutRequest()
        {
            // ARRANGE
            PriceListClient client = new PriceListClient();

            // ACT
            GetOfferIndexFileResponse response = await client.GetOfferIndexFileAsync();

            // ASSERT
            Assert.True(!response.IsError());
            Assert.NotNull(response.OfferIndexFile);
        }
Example #2
0
        public async Task TestGetOfferIndexFile_WithRequest()
        {
            // ARRANGE
            PriceListClient          client  = new PriceListClient();
            GetOfferIndexFileRequest request = new GetOfferIndexFileRequest("/offers/v1.0/aws/index.json");

            // ACT
            GetOfferIndexFileResponse response = await client.GetOfferIndexFileAsync(request);

            // ASSERT
            Assert.True(!response.IsError());
            Assert.NotNull(response.OfferIndexFile);
        }