public void DeleteCategoryCommand_ShouldFail()
        {
            var command = new DeleteCategoryCommand {
                Id = 1
            };

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

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