public void ShouldReturnValidWhenCreateCommandIsValid()
        {
            var command = new CreateEquipmentCommand();

            command.Description = "New Equipment";
            var result = _handler.Handle(command);

            Assert.AreEqual(true, result.Status);
        }
Пример #2
0
        public async Task <IActionResult> Post([FromBody] CreateEquipmentCommand command)
        {
            var result = _handler.Handle(command);

            return(await Response(result));
        }
Пример #3
0
 public ICommandResult Post([FromBody] CreateEquipmentCommand command)
 {
     return(_handler.Handle(command));
 }