public void GetShippingStatusById_ReturnsADefaultShippingOfIdValueOfZero_WhenCalledWithValidIdOfValueOneButDatabaseIsEmpty() { // Arrange int expected = 0; int id = 1; SqlServerShippingRepository shippingRepo = new SqlServerShippingRepository(context); // Act int actual = shippingRepo.GetShippingStatusById(id).Id; // Assert Assert.AreEqual(expected, actual); }
public void GetShippingStatusById_ReturnsAShippingOfIdValueOfOne_WhenCalledWithValidIdOfValueOnePresentInDatabase() { // Arrange int expected = 1; int id = 1; InsertData(); SqlServerShippingRepository shippingRepo = new SqlServerShippingRepository(context); // Act int actual = shippingRepo.GetShippingStatusById(id).Id; // Assert Assert.AreEqual(expected, actual); }