コード例 #1
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);
        }
コード例 #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);
        }