Exemple #1
0
        public void GivenOwnerHasBakedProductThatAlreadyExists()
        {
            string        jsonResponse  = requestHelper.ExecutePostProductRequest("Bread", "3.45");
            BakeryProduct bakeryProduct = DeserializeJSON_ToBakeryProduct.GetAddedBakeryProductFromPostRequest(jsonResponse);

            ScenarioContext.Current.Set(bakeryProduct.Id, "id");
        }
Exemple #2
0
        public void GivenOwnerHasBakedNewProductWithoutNameAndPrice()
        {
            string        jsonResponse  = requestHelper.ExecutePostProductRequest(string.Empty, null);
            BakeryProduct bakeryProduct = DeserializeJSON_ToBakeryProduct.GetAddedBakeryProductFromPostRequest(jsonResponse);

            ScenarioContext.Current.Set(bakeryProduct.Id, "id");
        }
Exemple #3
0
        public void GivenOwnerHasBakedNewProductThatCosts(string name, string price)
        {
            string        jsonResponse  = requestHelper.ExecutePostProductRequest(name, price);
            BakeryProduct bakeryProduct = DeserializeJSON_ToBakeryProduct.GetAddedBakeryProductFromPostRequest(jsonResponse);

            ScenarioContext.Current.Set(bakeryProduct.Id, "id");
        }