public AuthenticationTicketProvider( IAuthenticationTicketStorage authenticationTicketStorage, IAuthorizationProvider <string> authorizationProvider, ITokenProxyClient tokenProxyClient, IUserHttpClient userHttpClient, IDateTimeOffsetProvider dateTimeOffsetProvider) { this.authenticationTicketStorage = authenticationTicketStorage; this.authorizationProvider = authorizationProvider; this.tokenProxyClient = tokenProxyClient; this.userHttpClient = userHttpClient; this.dateTimeOffsetProvider = dateTimeOffsetProvider; this.semaphore = new SemaphoreSlim(1); this.locker = new object(); }
public virtual void TestInitialize() { this.secureStorageMock = new Mock <ISecureStorage>(MockBehavior.Strict); this.authenticationTicketStorage = new AuthenticationTicketStorage(this.secureStorageMock.Object); }
public AuthenticationTicketRepository(IAuthenticationTicketStorage authenticationTicketStorage) { this.authenticationTicketStorage = authenticationTicketStorage; }