public void GetProducts() { var products = new ProductBuilder().GetProducts(1); _mockRepository.Setup(x => x.GetAll()).Returns(products.AsQueryable()); var customersFromRepo = _service.GetAll(); Assert.True(customersFromRepo.Count == 1); }
public void GetProducts() { var products = new ProductBuilder().GetProducts(1); _mockRepository.Setup(x => x.GetAll()).Returns(products.AsQueryable()); var customersFromRepo = _service.GetAll(); Assert.True(customersFromRepo.Count == 1); }