public AuthenticationSessionStoreWrapper(
            IServiceTicketStore store)
        {
            _store = store;
#pragma warning disable 0612
            this.store = store;
#pragma warning restore 0612
        }
 public CasSingleSignOutMiddlewareTest(CasFixture fixture)
 {
     _fixture = fixture;
     // Arrange
     _store  = Mock.Of <IServiceTicketStore>();
     _server = TestServer.Create(app => app.UseCasSingleSignOut(new AuthenticationSessionStoreWrapper(_store)));
     _client = _server.HttpClient;
 }
Esempio n. 3
0
 public CasSingleSignOutMiddlewareTest()
 {
     // Arrange
     store  = Mock.Of <IServiceTicketStore>();
     server = TestServer.Create(app =>
     {
         app.UseCasSingleSignOut(new AuthenticationSessionStoreWrapper(store));
     });
     client = server.HttpClient;
 }
 public AuthenticationSessionStoreWrapper(
     IServiceTicketStore store)
 {
     _store = store;
 }
 public DistributedCacheServiceTicketStoreTest()
 {
     _serviceTickets = new DistributedCacheServiceTicketStore(_cache);
 }
 public TicketStoreWrapper(
     IServiceTicketStore store)
 {
     this.store = store;
 }
Esempio n. 7
0
 private TestServer CreateServer(IServiceTicketStore store)
 {
     return(TestServer.Create(app => app.UseCasSingleSignOut(new AuthenticationSessionStoreWrapper(store))));
 }