Ejemplo n.º 1
0
        public Task <GetBoardSwimLanesCommandResult> GetBoardSwimLanes(GetBoardSwimLanesCommand command)
        {
            Task <GetBoardSwimLanesCommandResult> result;

            result = _mediator.Send(command);

            return(result);
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
        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));
            }
        }