Esempio n. 1
0
        public void CalculateDriverScore()
        {
            DriverRepository repo   = new DriverRepository();
            Driver           person = new Driver(2, 1, 8, 4);

            int actual   = repo.CalculateDriverScore(person);
            int expected = 8;

            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public void CalculateFinalPremium()
        {
            DriverRepository repo   = new DriverRepository();
            Driver           person = new Driver(2, 1, 8, 4);

            int     score    = repo.CalculateDriverScore(person);
            decimal actual   = repo.CalculateFinalPremium(score);
            decimal expected = 95.00m;

            Assert.AreEqual(expected, actual);
        }