public Task <GetBoardSwimLanesCommandResult> GetBoardSwimLanes(GetBoardSwimLanesCommand command) { Task <GetBoardSwimLanesCommandResult> result; result = _mediator.Send(command); return(result); }
public async Task GetBoardSwimLanes_StateUnderTest_ExpectedBehavior() { // Arrange var service = this.CreateService(); GetBoardSwimLanesCommand command = null; // Act var result = await service.GetBoardSwimLanes( command); // Assert Assert.True(false); this.mockRepository.VerifyAll(); }
public ActionResult <List <BoardSwimlanesOutput> > GetBoardSwimLanes(string boardId) { GetBoardSwimLanesCommand command = new GetBoardSwimLanesCommand(boardId); Task <GetBoardSwimLanesCommandResult> result = _boardService.GetBoardSwimLanes(command); List <BoardSwimlanesOutput> returnValue = _mapper.Map <List <GetBoardSwimLanesCommandResultItem>, List <BoardSwimlanesOutput> >(result.Result.ResultObject.Data); if (result.Result.ResultObject.Success) { returnValue[0].IsSuccess = true; return(Ok(returnValue)); } else { return(BadRequest(result)); } }