public void GetAllStatuses_ReturnsAListOfStatusesOfLengthZero_WhenCalledAndTheDatabaseIsEmpty() { // Arrange int expected = 0; SqlServerStatusRepository statusRepo = new SqlServerStatusRepository(context); // Act int actual = statusRepo.GetAllStatuses().Count(); // Assert Assert.AreEqual(expected, actual); }
public void GetAllStatuses_ReturnsAListOfStatusesOfLengthOne_WhenCalledAndTheDatabaseHasOneStatusObject() { // Arrange int expected = 1; InsertData(); SqlServerStatusRepository statusRepo = new SqlServerStatusRepository(context); // Act int actual = statusRepo.GetAllStatuses().Count(); // Assert Assert.AreEqual(expected, actual); }