public void ShouldExecuteUseCase(string query) { var ret = usuarioUseCase.Execute(query); ret.Should().NotBeNull(); ret.Result.Errors?.Count.Should().Be(0); }
public async Task <IActionResult> GetUsers([FromBody] GraphQLQuery query) { var result = await usuarioUseCase.Execute(query.Input); if (result.Errors?.Count > 0) { return(BadRequest()); } return(Ok(result)); }