public void GetAuthorizationUrl_WithMultipleScopes_GeneratesAuthorizationUrl() { // Given: We create a new connect client ConnectClient connectClient = new ConnectClient(this.ClientId, this.ClientSecret); // When: We get the authorization URL string authorizationUrl = connectClient.GetAuthorizationUrl("abcdef", new List <string>() { AppPermissions.PaymentsRead, AppPermissions.PaymentsWrite }); // Then: string expectedUrl = $"https://www.mollie.com/oauth2/authorize?client_id={this.ClientId}&state=abcdef&scope=payments.read+payments.write&response_type=code&approval_prompt=auto"; Assert.AreEqual(expectedUrl, authorizationUrl); }