public async Task <bool> Confirm(IConfirmable message, ErrorState errors = null) { var state = errors ?? ErrorState.Unchecked().Valid(); var confirmation = _confirmationFactory.Create(message, state); return(await SendAsync(confirmation).ConfigureAwait(false)); }
public Confirmation Translate(ICommand confirmationCommand) { return(_confirmationFactory.Create( confirmationCommand.Order.ToString(), ExtractErrors(confirmationCommand), confirmationCommand.Timestamp)); }