public void SaveFeeAndRetreiveByIdTest_SavesAnObjectToDatabaseAndManipulatesIt_ChecksIfItIsUpdatedAsExpected() { Fee fee = new Fee("LTC/BTC", 4000, 500); _persistanceRepository.SaveOrUpdate(fee); List <Fee> retrievedFee = _feeRepository.GetFeeByCurrencyPair("LTC/BTC"); Assert.IsNotNull(retrievedFee); int id = retrievedFee[0].Id; _persistanceRepository.SaveOrUpdate(retrievedFee); fee = _feeRepository.GetFeeById(id); Assert.AreEqual(fee.PercentageFee, fee.PercentageFee); Assert.AreEqual(fee.Amount, fee.Amount); }