public async Task GetAllNonPhysicalProductsAsync_ShouldReturnNonPhysicalProducts() { var testProducts = GetNonPhysicalProducts(); var controller = new ProductBusinessRulesController(testProducts); var result = await controller.GetAllNonPhysicalProductsAsync() as List <Product>; Assert.AreEqual(testProducts.Count, result.Count); }
public void GetAllProducts_ReturnAllProducts() { var products = GetPhysicalProducts(); var controller = new ProductBusinessRulesController(products); var result = controller.GetAllProducts() as List <Product>; Assert.AreEqual(products.Count, result.Count); }