Ejemplo n.º 1
0
        public void AddAndGetList()
        {
            DriverRepository repo      = new DriverRepository();
            Driver           person    = new Driver(2, 1, 8, 4);
            Driver           personTwo = new Driver(3, 1, 8, 3);

            repo.AddDriverToList(person);
            repo.AddDriverToList(personTwo);

            int actual   = repo.GetDriverList().Count();
            int expected = 2;

            Assert.AreEqual(expected, actual);
        }