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 DeleteFulfillmentLocation_ThrowsCorrectExceptionOnOtherError(FulfillmentLocationClient client) { await Assert.ThrowsAsync <CommunicationFailureException>(async() => { await client.DeleteFulfillmentLocation("a1s2d3"); }); }
public async void DeleteFulfillmentLocation_ThrowsCorrectExceptionOnForbidden(FulfillmentLocationClient client) { await Assert.ThrowsAsync <AccessForbiddenException>(async() => { await client.DeleteFulfillmentLocation("a1s2d3"); }); }