public override void Setup() { base.Setup(); this.adalServiceInfo = new AdalServiceInfo(); this.adalServiceInfo.CopyFrom(this.serviceInfo); this.authenticationProvider = new AdalAuthenticationProvider(this.adalServiceInfo); }
public void Setup() { this.credentialCache = new MockAdalCredentialCache(); this.httpResponseMessage = new HttpResponseMessage(); this.serializer = new Serializer(); this.httpProvider = new MockHttpProvider(this.httpResponseMessage, this.serializer); this.serviceInfo = new ActiveDirectoryServiceInfo { AppId = "12345", AuthenticationServiceUrl = "https://login.live.com/authenticate", CredentialCache = this.credentialCache.Object, HttpProvider = this.httpProvider.Object, ReturnUrl = "https://login.live.com/return", SignOutUrl = "https://login.live.com/signout", TokenServiceUrl = "https://login.live.com/token" }; this.authenticationProvider = new AdalAuthenticationProvider(this.serviceInfo); }