public async void GetAllMembers_NoExceptionThrown() { //Arrange int projectId = 1; int userId = 1; Project mockProject = new() { Id = projectId, Team = new List <ProjectMember>() { new() { ProjectId = projectId, UserId = userId } } }; m_projectRepository.GetSingle(projectId).Returns(mockProject); m_service = new ProjectMemberService(m_projectRepository, m_mapper); //Act IEnumerable <ProjectMemberDto> members = await m_service.GetAllMembers(projectId); //Assert Assert.NotEmpty(members); }