public override void When() { this.controller = new ApiControllerBuilder<FederationCallbackController>(this.FederationCallbackController) .CreateRequest(this.Request) .Build(); this.response = this.controller.Post(); }
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); }
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(); }