public async Task Execute_Success() { var fixture = new Fixture().SetOwnidSpecificSettings(); var userHandler = new Mock <IUserHandlerAdapter>(); var command = new InternalConnectionRecoveryCommand(userHandler.Object); var token = fixture.Create <string>(); await command.ExecuteAsync(token); userHandler.Verify(x => x.GetConnectionRecoveryDataAsync(token, true), Times.Once); userHandler.VerifyNoOtherCalls(); }
public ConnectionRestoreBaseTransitionHandler(IJwtComposer jwtComposer, StopFlowCommand stopFlowCommand, IUrlProvider urlProvider, InternalConnectionRecoveryCommand internalConnectionRecoveryCommand) : base( jwtComposer, stopFlowCommand, urlProvider) { _internalConnectionRecoveryCommand = internalConnectionRecoveryCommand; }