void AndGivenCommandPrepared()
 {
     _command = new BuyPositionInMatrixCommand
     {
         UserMultiAccountId = Guid.Parse("032d748c-9cef-4a5a-92bd-3fd9a4a0e499"),
         MatrixLevel        = 0
     };
 }
Exemplo n.º 2
0
 public async Task <IActionResult> BuyPosition([FromBody] BuyPositionInMatrixCommand command)
 {
     // TODO: status 201 maybe?
     return(Ok(new { Id = await _mediator.Send(command) }));
 }