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);
        }
示例#2
0
        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);
        }