示例#1
0
        public async Task <IActionResult> Remove([FromBody][Required] RemoveEventRequest request)
        {
            var input = new RemoveEventInput(request.EventId);
            await _useCase.Execute(input);

            return(_presenter.ViewModel);
        }
示例#2
0
 public async Task NullInput_ShouldThrow()
 {
     await Assert.ThrowsAsync <Exception>(async() => {
         await _useCase.Execute(null);
     });
 }