public void Test_UpdateHistorialValidator(string descripcion, bool valid) { var command = new UpdateHistorialCommand { Id = Guid.NewGuid(), Descripcion = descripcion }; var validator = new UpdateHistorialValidator(); var result = validator.Validate(command); Assert.Equal(valid, result.IsValid); }
public async Task <IActionResult> PutHistorialUsuario([FromRoute] Guid validationId, UpdateHistorialCommand updateHistorial) => StatusCode(await Mediator.Send(updateHistorial.SetValidationId(validationId)).ConfigureAwait(false));