public async Task Update_correct_input_returns_true_Integration() { var logic = new StudyLogic(_repo); var response = await logic.Update(_studyDTO, _studyDTO.Id); Assert.True(response); }
public async Task Update_incorrect_input_returns_false() { _mock.Setup(m => m.UpdateAsync(It.IsAny <StudyDTO>())).ReturnsAsync(false); var logic = new StudyLogic(_mock.Object); var response = await logic.Update(_studyDTO, _studyDTO.Id); Assert.False(response); }