public void Can_get_existing_product_by_id() { IPaymentAttemptRepository repository = new PaymentAttemptRepository(); var fromDb = repository.GetById(_paymentAttempts[1].Id); Assert.IsNotNull(fromDb); Assert.AreNotSame(_paymentAttempts[1], fromDb); Assert.AreEqual(_paymentAttempts[1].AccountNumber, fromDb.AccountNumber); }