public void TestCalculateMaxiSavingInterestFor180Days()
        {
            Transaction[] trx = new[]
            {
                new Transaction(1000, new DateTime(1970, 1, 1)),
            };
            MaxiSavingInterestCalculator calculator = new MaxiSavingInterestCalculator();
            double amount = calculator.Calculate(trx, new DateTime(1970, 6, 30));

            Assert.AreEqual(25, amount, DOUBLE_DELTA);
        }
        public void TestCalculateMaxiSavingInterestWithdrawalWithin10Days()
        {
            Transaction[] trx = new[]
            {
                new Transaction(2000, new DateTime(1970, 1, 1)),
                new Transaction(-1000, new DateTime(1970, 12, 26))
            };
            MaxiSavingInterestCalculator calculator = new MaxiSavingInterestCalculator();
            double amount   = calculator.Calculate(trx, new DateTime(1970, 12, 27));
            double expected = 2000.0.DailyInterest(0.1, 359) + 1000.0.DailyInterest(0.1, 1);

            Assert.AreEqual(expected, amount, DOUBLE_DELTA);
        }