Пример #1
0
        public async Task ValidateAsync_Test()
        {
            // arrange
            var data_provider = new MockDataProvider();

            var product = new Product
            {
                ID          = 2,
                Name        = "Product A",
                Description = "This is a cool product as well",
                Quantity    = 100
            };

            // act
            var is_valid = await data_provider.ValidateAsync(product);

            // assert
            Assert.False(is_valid);
        }