public GenericCommandResult Create([FromBody] CreateScoreCommand command, [FromServices] ScoreHandler handler) { return((GenericCommandResult)handler.Handle(command)); }
public void ValidCommandToHandler() { var result = (GenericCommandResult)_handler.Handle(_validCommand); Assert.AreEqual(result.Success, true); }