public void Nullifnullbalance()
        {
            var sut     = new RentDailySurcharger();
            var lse     = LeaseWithPenaltyRate(0.03M);
            var oldBal  = (decimal?)null;
            var charges = sut.GetPenalties(lse, 3.May(2018), oldBal);

            charges.Should().BeNull();
        }
        public void Nullifinactivelease()
        {
            var sut = new RentDailySurcharger();
            var lse = new InactiveLeaseDTO {
                Rent = new RentParams {
                    PenaltyRule = sut.RuleName
                }
            };
            var charges = sut.GetPenalties(lse, 3.May(2018), 123);

            charges.Should().BeNull();
        }
        public void RateTimesBalancerounded()
        {
            var sut     = new RentDailySurcharger();
            var lse     = LeaseWithPenaltyRate(0.03M);
            var date    = 3.May(2018);
            var oldBal  = 90;
            var charges = sut.GetPenalties(lse, date, oldBal);

            charges.Should().HaveCount(1);
            var penalty = charges.Single();

            penalty.Amount.Should().Be(3);
            penalty.Label.Should().Be(sut.RuleName);
        }