public async void GetFulfillmentLocations_RetrievesAllFulfillmentLocations()
        {
            var fulfillmentLocations = await _client.GetFulfillmentLocations();

            Console.WriteLine("Number of locations retrieved: {0}", fulfillmentLocations.Count);
        }
 public async void GetFulfillmentLocations_ThrowsCorrectExceptionOnOtherError(FulfillmentLocationClient client)
 {
     await Assert.ThrowsAsync <CommunicationFailureException>(async() => {
         await client.GetFulfillmentLocations();
     });
 }
        public async void GetFulfillmentLocations_FiltersByInternalFulfillerId(FulfillmentLocationClient client)
        {
            var fulfillmentLocations = await client.GetFulfillmentLocations(_fulfillmentLocations.ElementAt(0).InternalFulfillerId);

            Assert.True(fulfillmentLocations.SequenceEqual(_fulfillmentLocations.Where(fl => fl.FulfillerId == _fulfillmentLocations.ElementAt(0).FulfillerId)));
        }
 public async void GetFulfillmentLocations_ThrowsCorrectExceptionOnForbidden(FulfillmentLocationClient client)
 {
     await Assert.ThrowsAsync <AccessForbiddenException>(async() => {
         await client.GetFulfillmentLocations();
     });
 }
        public async void GetFulfillmentLocations_ReturnsFulfillmentLocations(FulfillmentLocationClient client)
        {
            var fulfillmentLocations = await client.GetFulfillmentLocations();

            Assert.True(fulfillmentLocations.SequenceEqual(_fulfillmentLocations));
        }