public void WhenDbContextReturnsEntityInstance() { var result = new FakeEmployeeRepository().GetById("1"); Assert.True(result.IsSucess); }
public void WhenDbContextReturnsNullResultsException() { var result = new FakeEmployeeRepository().GetById("2"); Assert.True(result.IsFailure); }
public void WhenDbContextThrowsAnException() { var result = new FakeEmployeeRepository().GetById("e"); Assert.True(result.IsFailure); }