public void CheckStatus_ReturnsABoolOfValueFalse_WhenCalledAndStatusNameIsNotInDatabase() { // Arrange bool expected = false; string status = "name"; SqlServerStatusRepository statusRepo = new SqlServerStatusRepository(context); // Act bool actual = statusRepo.CheckStatus(status); // Assert Assert.AreEqual(expected, actual); }
public void CheckStatus_ReturnsABoolOfValueTrue_WhenCalledAndStatusNamePresentInDatabase() { // Arrange bool expected = true; string statusName = "name"; InsertData(); SqlServerStatusRepository statusRepo = new SqlServerStatusRepository(context); // Act bool actual = statusRepo.CheckStatus(statusName); // Assert Assert.AreEqual(expected, actual); }