public void GetProductsTest() { IDataContext <Product> dataContext = new TestDataContext(); IDataRepository dataRepository = new DataRepository(dataContext); ProductModelService product = new ProductModelService(); Assert.AreEqual(0, dataRepository.GetProducts().Count()); dataContext.AddItem(product.CreateProduct()); Assert.AreEqual(1, dataRepository.GetProducts().Count()); }