Пример #1
0
        public ActionResult <bool> Delete(BoardDeleteInput input)
        {
            DeleteBoardCommand command             = _mapper.Map <BoardDeleteInput, DeleteBoardCommand>(input);
            Task <DeleteBoardCommandResult> result = _boardService.Delete(command);

            if (result.Result.ResultObject.Success)
            {
                return(Ok(result.Result.ResultObject));
            }
            else
            {
                return(BadRequest(result));
            }
        }
Пример #2
0
        public void Delete_StateUnderTest_ExpectedBehavior()
        {
            // Arrange
            var boardController    = this.CreateBoardController();
            BoardDeleteInput input = null;

            // Act
            var result = boardController.Delete(
                input);

            // Assert
            Assert.True(false);
            this.mockRepository.VerifyAll();
        }