public void ShouldReturnValidWhenCreateCommandIsValid() { var command = new CreateEquipmentCommand(); command.Description = "New Equipment"; var result = _handler.Handle(command); Assert.AreEqual(true, result.Status); }
public async Task <IActionResult> Post([FromBody] CreateEquipmentCommand command) { var result = _handler.Handle(command); return(await Response(result)); }
public ICommandResult Post([FromBody] CreateEquipmentCommand command) { return(_handler.Handle(command)); }