public void CanGetExistingProductById() { IProductRepository repository = new ProductRepository(); var fromDb = repository.GetByProductId(_products[1].ProductId); Assert.IsNotNull(fromDb); Assert.AreNotSame(_products[1], fromDb); Assert.AreEqual(_products[1].Name, fromDb.Name); }