AccountManagement.UI.Web.Tests.AuthenticatedControllerTest.SetupAuthenticationContext C# (CSharp) Метод

SetupAuthenticationContext() приватный Метод

private SetupAuthenticationContext ( ) : void
Результат void
        public void SetupAuthenticationContext()
        {
            AuthenticationContext = new TestAuthenticationContext();
            Container.Register(
                Component.For<IUtcTimeTimeSource, DummyTimeSource>().Instance(DummyTimeSource.Now).LifestyleSingleton(),
                Component.For<TestAuthenticationContext, IAuthenticationContext>()
                    .Instance(AuthenticationContext)
                );
        }
    }
AuthenticatedControllerTest