public async Task SaveAsyncWhenCoordinatorsReturnsSuccess() { // var mockCoordinatorRepository = GetDefaultICoordinatorRepositoryInstance(); var mockIUnitOfWork = GetDefaultIUnitOfWorkInstance(); var mockFacultyRepository = GetDefaultIFacultyRepositoryInstance(); var mockAccountRepository = GetDefaultIAccountRepositoryInstance(); Coordinator coordinator = new Coordinator(); mockCoordinatorRepository.Setup(r => r.AddAsync(coordinator)) .Returns(Task.FromResult <Coordinator>(coordinator)); var service = new CoordinatorService(mockCoordinatorRepository.Object, mockAccountRepository.Object, mockFacultyRepository.Object, mockIUnitOfWork.Object); // CoordinatorResponse result = await service.SaveAsync(coordinator); var message = result.Message; // message.Should().Be(""); }