public void DeactivateShop_When_ShopDoesNotExist_ReturnsNotFound() { var request = ShopRequestHelper.DeactivateShop(UNEXISTING_SHOP); var response = this.restClient.Execute(request); Assert.AreEqual(HttpStatusCode.NotFound, response.StatusCode); }
public void DeactivateShop_When_Active_ReturnsNoContent() { var request = ShopRequestHelper.DeactivateShop(EXISTING_SHOP); var response = this.restClient.Execute(request); Assert.AreEqual(HttpStatusCode.NoContent, response.StatusCode); }
private void DeactivateAllShops() { var request = ShopRequestHelper.GetAllShops(); request.AddQueryParameter("isActive", "true"); var response = this.restClient.Execute <List <ShopResponse> >(request); response.Data.ForEach(activeShop => { var deactivateRequest = ShopRequestHelper.DeactivateShop(activeShop.Id); this.restClient.Execute(deactivateRequest); }); }