예제 #1
0
        public void DeleteCategoryCommand_ShouldFail()
        {
            var command = new DeleteCategoryCommand {
                Id = 1
            };

            _mediator.HandleAsync(command).Wait();
        }
예제 #2
0
        public void DeleteCategoryCommandShouldThrowException()
        {
            var command = new DeleteCategoryCommand {
                Id = 1
            };

            _mediator.HandleAsync(command).Wait();
        }