public async Task BoardService_FindWithTasksAsync_InputInvalid_Should_ReturnNull() { var mockUnitOfWork = new Mock <IUnitOfWork>(); var mockBoardRepository = new MockBoardRepository().MockFindByIdWithTasksAsyncInvalid(); var boardService = new BoardService(mockBoardRepository.Object, mockUnitOfWork.Object); var results = await boardService.FindWithTasksAsync(1); Assert.IsNull(results); mockBoardRepository.VerifyFindByIdWithTasksAsync(Times.Once()); }