public override void When()
        {
            this.controller = new ApiControllerBuilder<FederationCallbackController>(this.FederationCallbackController)
                .CreateRequest(this.Request)
                .Build();

            this.response = this.controller.Post();
        }
예제 #2
0
        public override void When()
        {
            this.TokenStore.Setup(x => x.GetAndDeleteToken(TestValues.NAME_IDENTIFIER)).Returns(TestValues.FED_AUTH_TOKEN);

            this.controller = new ApiControllerBuilder<FederationCallbackController>(this.FederationCallbackController)
                .CreateRequest(this.Request)
                .Build();

            this.response = this.controller.Get(TestValues.NAME_IDENTIFIER);
        }
예제 #3
0
        public override void When()
        {
            this.controller = new ApiControllerBuilder<FederationCallbackController>(this.FederationCallbackController)
                .CreateRequest(this.Request)
                .AddCookie(TestValues.FED_AUTH_COOKIE_KEY, TestValues.FED_AUTH_COOKIE_VALUE)
                .AddCookie(TestValues.FED_AUTH_1_COOKIE_KEY, TestValues.FED_AUTH_1_COOKIE_VALUE)
                .Build();

            this.response = this.controller.Post();
        }