public void Repository_can_be_created_from_simple_list() { Product product = new Product(); List<Product> products = new List<Product> { product }; IRepository<Product> repository = new FakeRepository<Product>(products); repository.Fetch(x => x.Category); Assert.That(repository.ToList(), Is.Not.Empty); }
public void Repository_can_be_created_from_simple_list() { Product product = new Product(); List <Product> products = new List <Product> { product }; IRepository <Product> repository = new FakeRepository <Product>(products); repository.Fetch(x => x.Category); Assert.That(repository.ToList(), Is.Not.Empty); }