示例#1
0
        public static void SetupTestData(TestContext testContext)
        {
            var response = Products.AddProduct("TST", "Test product");

            response.StatusCode.Should().Be(HttpStatusCode.Created);
            response = Products.AddProduct("ANO", "Another product");
            response.StatusCode.Should().Be(HttpStatusCode.Created);
        }
示例#2
0
        public void CreateASingleProduct()
        {
            var response = Products.AddProduct("NEW", "New product");

            response.StatusCode.Should().Be(HttpStatusCode.Created);
        }
示例#3
0
        public void GivenANewProductIsExists(string productCode, string productDescription)
        {
            var response = Products.AddProduct(productCode, productDescription);

            response.StatusCode.Should().Be(HttpStatusCode.OK);
        }