예제 #1
0
        public void Should_calculate_mercedes_van()
        {
            var quote   = InsuranceQuote.CreateFrom("van", "Mercedes");
            var premium = QuotationEngine.Calculate(quote);

            premium.GetCost().ShouldBe(2000);
        }
예제 #2
0
        public void Should_calcualate_audi_van()
        {
            var quote   = InsuranceQuote.CreateFrom("van", "Audi");
            var premium = QuotationEngine.Calculate(quote);

            premium.GetCost().ShouldBe(1500);
        }
예제 #3
0
        public void Should_calulcate_low_risk_tier_one_group()
        {
            var quote   = InsuranceQuote.CreateFrom("van", "mercedes");
            var premium = QuotationEngine.Calculate(quote);

            quote.Age = 36;

            premium.GetCost().ShouldBe(2000);
        }
예제 #4
0
        public void should_calculate_tier_4_group()
        {
            var quote = InsuranceQuote.CreateFrom("van", "mercedes");

            quote.Age = 17;
            var premium = QuotationEngine.Calculate(quote);

            premium.GetCost().ShouldBe(10000);
        }