Inheritance: IAuthenticationContext
 public void SetupAuthenticationContext()
 {
     AuthenticationContext = new TestAuthenticationContext();
     Container.Register(
         Component.For<TestAuthenticationContext, IAuthenticationContext>()
             .Instance(AuthenticationContext)
         );
 }
Exemplo n.º 2
0
 public void SetupAuthenticationContext()
 {
     AuthenticationContext = new TestAuthenticationContext();
     Container.Register(
         Component.For <IUtcTimeTimeSource, DummyTimeSource>().Instance(DummyTimeSource.Now).LifestyleSingleton(),
         Component.For <TestAuthenticationContext, IAuthenticationContext>()
         .Instance(AuthenticationContext)
         );
 }
 public void SetupAuthenticationContext()
 {
     AuthenticationContext = new TestAuthenticationContext();
     Container.Register(
         Component.For<IUtcTimeTimeSource, DummyTimeSource>().Instance(DummyTimeSource.Now).LifestyleSingleton(),
         Component.For<TestAuthenticationContext, IAuthenticationContext>()
             .Instance(AuthenticationContext)
         );
 }