示例#1
0
        public void Product_TestRepository_GetAll__ShouldBeNull()
        {
            BaseSqlTests.Helper_ClearDataBase();

            IEnumerable <Product> listProducts = _repository.GetAll();

            listProducts.Count().Should().Be(0);
        }
示例#2
0
        public void Product_TestSystemIntegrationSql_DeleteProduct__ShouldBeOk()
        {
            BaseSqlTests.Helper_ClearDataBase();

            var productRetorns = _productService.GetAll();

            productRetorns.Count().Should().Be(0);
        }
示例#3
0
        public void Product_TestSystemIntegrationSql_GetAll__ShouldBeNull()
        {
            BaseSqlTests.Helper_ClearDataBase();
            Product productToDelete = ObjectMother.GetProductOk();

            productToDelete.Id = 1;
            _productService.Delete(productToDelete);

            var listProducts = _productService.GetAll();

            listProducts.Count().Should().Be(0);
        }