public void GetLearningPath_LearningPathDoesExist_ReturnTheLearningPath() { var learningPath = new LearningPathDto(); _repo.Setup(x => x.GetLearningPath("learningPathId", "organizationId", default)) .ReturnsAsync(learningPath); var result = _sut.GetLearningPath("learningPathId", default).Result; Assert.That(result, Is.EqualTo(learningPath)); }
public void WhenCalled_ReturnLearningPath() { var learningPathDto = new LearningPathDto(); _service.Setup(x => x.GetLearningPath(_query.LearningPathId, default)) .ReturnsAsync(learningPathDto); var result = _sut.Handle(_query, default).Result; Assert.That(result.LearningPath, Is.EqualTo(learningPathDto)); }