Exemplo n.º 1
0
        public void DeleteShop_When_ShopDoesNotExist_ReturnsNotFound()
        {
            var request  = ShopRequestHelper.DeleteShop(UNEXISTING_SHOP);
            var response = this.restClient.Execute <ShopResponse>(request);

            Assert.AreEqual(HttpStatusCode.NotFound, response.StatusCode);
        }
Exemplo n.º 2
0
        public void DeleteShop_When_ShopDeleted_ReturnsNoContent()
        {
            var id = this.GetTestShop();

            var request  = ShopRequestHelper.DeleteShop(id);
            var response = this.restClient.Execute <ShopResponse>(request);

            Assert.AreEqual(HttpStatusCode.NoContent, response.StatusCode);
        }
Exemplo n.º 3
0
 private void DeleteShop(string shopId)
 {
     var request  = ShopRequestHelper.DeleteShop(shopId);
     var response = this.restClient.Execute(request);
 }