public void Get_BalanceMin_At_Date() { SavingsBookProduct product = new SavingsBookProduct() { WithdrawFeesType = OSavingsFeesType.Flat, FlatWithdrawFees = 0 }; SavingBookContract saving = new SavingBookContract(ApplicationSettings.GetInstance(""), new User(), new DateTime(2009, 01, 01), product, null) { FlatWithdrawFees = 0, DepositFees = 5, CloseFees = 6, ManagementFees = 7 }; saving.FirstDeposit(1000, new DateTime(2009, 01, 01), null, new User(), Teller.CurrentTeller); saving.Withdraw(100, new DateTime(2009, 02, 02), "retrait", new User(), false, null); // saving.Deposit(230, new DateTime(2009, 02, 02), "depot", new User(), false, false, OPaymentMethods.Cash, null, null); saving.Deposit(230, new DateTime(2009, 02, 02), "depot", new User(), false, false, OSavingsMethods.Cash, null, null); Assert.AreEqual(saving.GetBalanceMin(new DateTime(2009, 01, 01)), 1000); Assert.AreEqual(saving.GetBalanceMin(new DateTime(2009, 02, 01)), 1000); Assert.AreEqual(saving.GetBalanceMin(new DateTime(2009, 02, 02)), 900); }