{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/comments/92523957","pull_request_review_id":13041039,"id":92523957,"diff_hunk":"@@ -0,0 +1,243 @@\n+﻿// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License. See License.Txt in the project root for license information.\n+\n+using Azure.Tests.Common;\n+using Microsoft.Azure.Management.Network.Fluent;\n+using Microsoft.Azure.Management.Network.Fluent.Models;\n+using System.Collections.Generic;\n+using System.IO;\n+using System.Linq;\n+using System.Threading;\n+using Xunit;\n+\n+namespace Azure.Tests.Network.ApplicationGateway\n+{\n+    /// <summary>\n+    /// Internal complex app gateway test.\n+    /// </summary>\n+    public class PublicComplex : TestTemplate<IApplicationGateway, IApplicationGateways>\n+    {\n+        private List<IPublicIpAddress> testPips;\n+        private INetwork network;\n+\n+        public PublicComplex(IPublicIpAddresses pips)\n+        {\n+            testPips = new List<IPublicIpAddress>(ApplicationGatewayHelper.EnsurePIPs(pips));\n+        }\n+\n+        public override void Print(IApplicationGateway resource)\n+        {\n+            ApplicationGatewayHelper.PrintAppGateway(resource);\n+        }\n+\n+        public override IApplicationGateway CreateResource(IApplicationGateways resources)\n+        {\n+            //Thread creationThread = new Thread(() =>\n+            //{\n+            //    Thread.CurrentThread.IsBackground = true;\n+            //    // Create an application gateway","path":"src/ResourceManagement/Azure.Fluent/Fluent.Tests/Network/ApplicationGateway/PublicComplex.cs","position":null,"original_position":38,"commit_id":"462d070f624332e50eac6af4d7e2bb3ca8ffa7b2","original_commit_id":"b456ed24307c7cd0960b599a61543ae7bddc762f","user":{"login":"martinsawicki","id":881767,"avatar_url":"https://avatars.githubusercontent.com/u/881767?v=3","gravatar_id":"","url":"https://api.github.com/users/martinsawicki","html_url":"https://github.com/martinsawicki","followers_url":"https://api.github.com/users/martinsawicki/followers","following_url":"https://api.github.com/users/martinsawicki/following{/other_user}","gists_url":"https://api.github.com/users/martinsawicki/gists{/gist_id}","starred_url":"https://api.github.com/users/martinsawicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinsawicki/subscriptions","organizations_url":"https://api.github.com/users/martinsawicki/orgs","repos_url":"https://api.github.com/users/martinsawicki/repos","events_url":"https://api.github.com/users/martinsawicki/events{/privacy}","received_events_url":"https://api.github.com/users/martinsawicki/received_events","type":"User","site_admin":false},"body":"ok. (commented out because this trick should work, but for an inexplicable reason it doesn't in this specific test. Anyway....)","created_at":"2016-12-15T00:50:57Z","updated_at":"2016-12-15T00:50:57Z","html_url":"https://github.com/Azure/azure-sdk-for-net/pull/2643#discussion_r92523957","pull_request_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/2643","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/comments/92523957"},"html":{"href":"https://github.com/Azure/azure-sdk-for-net/pull/2643#discussion_r92523957"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/2643"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/2643","id":98043003,"html_url":"https://github.com/Azure/azure-sdk-for-net/pull/2643","diff_url":"https://github.com/Azure/azure-sdk-for-net/pull/2643.diff","patch_url":"https://github.com/Azure/azure-sdk-for-net/pull/2643.patch","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/issues/2643","number":2643,"state":"open","locked":false,"title":"app gateway unit test conversion and passing (+ bug fixes)","user":{"login":"martinsawicki","id":881767,"avatar_url":"https://avatars.githubusercontent.com/u/881767?v=3","gravatar_id":"","url":"https://api.github.com/users/martinsawicki","html_url":"https://github.com/martinsawicki","followers_url":"https://api.github.com/users/martinsawicki/followers","following_url":"https://api.github.com/users/martinsawicki/following{/other_user}","gists_url":"https://api.github.com/users/martinsawicki/gists{/gist_id}","starred_url":"https://api.github.com/users/martinsawicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinsawicki/subscriptions","organizations_url":"https://api.github.com/users/martinsawicki/orgs","repos_url":"https://api.github.com/users/martinsawicki/repos","events_url":"https://api.github.com/users/martinsawicki/events{/privacy}","received_events_url":"https://api.github.com/users/martinsawicki/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-14T21:50:17Z","updated_at":"2016-12-15T00:50:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8fdc9cb4f2f96e0b8e901f3a7e09fdc6a6303df1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/2643/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/2643/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/issues/2643/comments","statuses_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/statuses/462d070f624332e50eac6af4d7e2bb3ca8ffa7b2","head":{"label":"martinsawicki:Fluent-AG","ref":"Fluent-AG","sha":"462d070f624332e50eac6af4d7e2bb3ca8ffa7b2","user":{"login":"martinsawicki","id":881767,"avatar_url":"https://avatars.githubusercontent.com/u/881767?v=3","gravatar_id":"","url":"https://api.github.com/users/martinsawicki","html_url":"https://github.com/martinsawicki","followers_url":"https://api.github.com/users/martinsawicki/followers","following_url":"https://api.github.com/users/martinsawicki/following{/other_user}","gists_url":"https://api.github.com/users/martinsawicki/gists{/gist_id}","starred_url":"https://api.github.com/users/martinsawicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinsawicki/subscriptions","organizations_url":"https://api.github.com/users/martinsawicki/orgs","repos_url":"https://api.github.com/users/martinsawicki/repos","events_url":"https://api.github.com/users/martinsawicki/events{/privacy}","received_events_url":"https://api.github.com/users/martinsawicki/received_events","type":"User","site_admin":false},"repo":{"id":69905751,"name":"azure-sdk-for-net","full_name":"martinsawicki/azure-sdk-for-net","owner":{"login":"martinsawicki","id":881767,"avatar_url":"https://avatars.githubusercontent.com/u/881767?v=3","gravatar_id":"","url":"https://api.github.com/users/martinsawicki","html_url":"https://github.com/martinsawicki","followers_url":"https://api.github.com/users/martinsawicki/followers","following_url":"https://api.github.com/users/martinsawicki/following{/other_user}","gists_url":"https://api.github.com/users/martinsawicki/gists{/gist_id}","starred_url":"https://api.github.com/users/martinsawicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinsawicki/subscriptions","organizations_url":"https://api.github.com/users/martinsawicki/orgs","repos_url":"https://api.github.com/users/martinsawicki/repos","events_url":"https://api.github.com/users/martinsawicki/events{/privacy}","received_events_url":"https://api.github.com/users/martinsawicki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/martinsawicki/azure-sdk-for-net","description":"Microsoft Azure SDK for .NET","fork":true,"url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net","forks_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/forks","keys_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/teams","hooks_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/hooks","issue_events_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/issues/events{/number}","events_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/events","assignees_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/assignees{/user}","branches_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/branches{/branch}","tags_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/tags","blobs_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/git/refs{/sha}","trees_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/statuses/{sha}","languages_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/languages","stargazers_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/stargazers","contributors_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/contributors","subscribers_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/subscribers","subscription_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/subscription","commits_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/commits{/sha}","git_commits_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/git/commits{/sha}","comments_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/comments{/number}","issue_comment_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/issues/comments{/number}","contents_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/contents/{+path}","compare_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/merges","archive_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/downloads","issues_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/issues{/number}","pulls_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/pulls{/number}","milestones_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/milestones{/number}","notifications_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/labels{/name}","releases_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/releases{/id}","deployments_url":"https://api.github.com/repos/martinsawicki/azure-sdk-for-net/deployments","created_at":"2016-10-03T19:58:06Z","updated_at":"2016-10-03T19:58:21Z","pushed_at":"2016-12-15T00:10:28Z","git_url":"git://github.com/martinsawicki/azure-sdk-for-net.git","ssh_url":"git@github.com:martinsawicki/azure-sdk-for-net.git","clone_url":"https://github.com/martinsawicki/azure-sdk-for-net.git","svn_url":"https://github.com/martinsawicki/azure-sdk-for-net","homepage":"https://www.visualstudio.com/features/azure-tools-vs","size":118589,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"AutoRest"}},"base":{"label":"Azure:Fluent","ref":"Fluent","sha":"33dca334eb7e9e9db29294f10cd689d3b17b2a31","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":2928944,"name":"azure-sdk-for-net","full_name":"Azure/azure-sdk-for-net","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-sdk-for-net","description":"Azure Tools for VIsual Studio","fork":false,"url":"https://api.github.com/repos/Azure/azure-sdk-for-net","forks_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/forks","keys_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/teams","hooks_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/events","assignees_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/tags","blobs_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/subscription","commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/merges","archive_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/downloads","issues_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-sdk-for-net/deployments","created_at":"2011-12-06T23:32:47Z","updated_at":"2016-12-12T10:30:17Z","pushed_at":"2016-12-15T00:20:41Z","git_url":"git://github.com/Azure/azure-sdk-for-net.git","ssh_url":"git@github.com:Azure/azure-sdk-for-net.git","clone_url":"https://github.com/Azure/azure-sdk-for-net.git","svn_url":"https://github.com/Azure/azure-sdk-for-net","homepage":"https://www.visualstudio.com/features/azure-tools-vs","size":122486,"stargazers_count":852,"watchers_count":852,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":697,"mirror_url":null,"open_issues_count":181,"forks":697,"open_issues":181,"watchers":852,"default_branch":"AutoRest"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/2643"},"html":{"href":"https://github.com/Azure/azure-sdk-for-net/pull/2643"},"issue":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/issues/2643"},"comments":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/issues/2643/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/2643/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/pulls/2643/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-net/statuses/462d070f624332e50eac6af4d7e2bb3ca8ffa7b2"}}}}
{"actor":{"display_login":"martinsawicki"}}