public async Task GetById_no_result_return_null_Integration() { var logic = new StudyLogic(_repo); var response = await logic.GetById(1); Assert.Equal(null, response); }
public async Task GetById_with_result_return_expected_dto_Integration() { var logic = new StudyLogic(_repo); var response = await logic.GetById(1); Assert.Equal(_studyDTO, response); }
public async Task GetById_no_result_return_null() { _mock.Setup(m => m.ReadAsync(It.IsAny <int>())).ReturnsAsync(null); var logic = new StudyLogic(_mock.Object); var response = await logic.GetById(1); Assert.Equal(null, response); }
public async Task GetById_with_result_return_expected_dto() { _mock.Setup(m => m.ReadAsync(It.IsAny <int>())).ReturnsAsync(_studyDTO); var logic = new StudyLogic(_mock.Object); var response = await logic.GetById(1); Assert.Equal(_studyDTO, response); }