public void TestAddGuarantorAndGetGuarantor() { Loan newContract = new Loan(new User(), ApplicationSettings.GetInstance(""), NonWorkingDateSingleton.GetInstance(""), ProvisionTable.GetInstance(new User()), ChartOfAccounts.GetInstance(new User())); new Loan(new User(), ApplicationSettings.GetInstance(""), NonWorkingDateSingleton.GetInstance(""), ProvisionTable.GetInstance(new User()), ChartOfAccounts.GetInstance(new User())); newContract.AddGuarantor(new Guarantor{Tiers = new Person(), Amount = 1000.50m}); Assert.AreEqual(1000.50m,newContract.GetGuarantor(0).Amount.Value); }