Esempio n. 1
0
        public void AddDriverToList()
        {
            InsuranceRepository _insuranceRepo = new InsuranceRepository();
            InsurancePoco       driverOne      = new InsurancePoco();
            InsurancePoco       driverTwo      = new InsurancePoco();
            InsurancePoco       driverThree    = new InsurancePoco();

            _insuranceRepo.AddDriverToList(driverOne);
            _insuranceRepo.AddDriverToList(driverTwo);
            _insuranceRepo.AddDriverToList(driverThree);

            int actual   = _insuranceRepo.GetInsuranceList().Count;
            int expected = 3;

            Assert.AreEqual(expected, actual);
        }