public void MaintenanceTaskRepository_ShouldRetainListOfTasks_GivenMultipleInstances() { var expectedTask = new MaintenanceTask() { Id = 33, VIN = "1111", type = TaskType.OilChange }; _repo.InsertMaintenanceTask(expectedTask); var repo2 = new MaintenanceTaskRepository(); var actualtask = repo2.GetTask(expectedTask.Id); Assert.IsNotNull(actualtask); Assert.AreEqual(expectedTask.VIN, actualtask.VIN); }
public MaintenanceTaskRepositoryTest() { _repo = new MaintenanceTaskRepository(); }