示例#1
0
        public void Should_Delete_Product_When_Product_Exists()
        {
            var products = _fakeProductRepository.GetAllAsync();
            var product  = products.Result.FirstOrDefault();

            var result = _handler.DeleteProductHandler(product.Id);

            Assert.AreEqual(true, result.Result.Success);
        }