public async void _ClientV1_SupportsAllOperationsOnFulfillmentLocation()
        {
            // CreateFulfillmentLocation
            var fulfillmentLocation = await _client.CreateFulfillmentLocation(_locationConfiguration);

            var createdFulfillmentLocationId = fulfillmentLocation.FulfillmentLocationId;

            // GetFulfillmentLocation
            fulfillmentLocation = await _client.GetFulfillmentLocation(createdFulfillmentLocationId);

            Console.WriteLine("Posted test location:\n {0}", fulfillmentLocation.ToString());

            // UpdateFulfillmentLocation
            fulfillmentLocation = await _client.UpdateFulfillmentLocation(createdFulfillmentLocationId, _locationConfiguration);

            Console.WriteLine("Updated test location:\n {0}", fulfillmentLocation.ToString());

            // DeleteFulfillmentLocation
            await _client.DeleteFulfillmentLocation(createdFulfillmentLocationId);
        }
 public async void UpdateFulfillmentLocation_ThrowsCorrectExceptionOnBadRequest(FulfillmentLocationClient client)
 {
     await Assert.ThrowsAsync <InvalidConfigurationException>(async() => {
         await client.UpdateFulfillmentLocation("a1s2d3", _locationConfigurations.ElementAt(0));
     });
 }
 public async void UpdateFulfillmentLocation_ThrowsCorrectExceptionOnOtherError(FulfillmentLocationClient client)
 {
     await Assert.ThrowsAsync <CommunicationFailureException>(async() => {
         await client.UpdateFulfillmentLocation("a1s2d3", _locationConfigurations.ElementAt(0));
     });
 }
 public async void UpdateFulfillmentLocation_ThrowsCorrectExceptionOnForbidden(FulfillmentLocationClient client)
 {
     await Assert.ThrowsAsync <AccessForbiddenException>(async() => {
         await client.UpdateFulfillmentLocation("a1s2d3", _locationConfigurations.ElementAt(0));
     });
 }