{"action":"created","comment":{"url":"https://api.github.com/repos/aspnet/StaticFiles/pulls/comments/46215886","id":46215886,"diff_hunk":"@@ -159,14 +168,17 @@ public class DefaultFilesMiddlewareTests\n \n         public async Task PostDirectory_PassesThrough(string baseUrl, string baseDir, string requestUrl)\n         {\n-            TestServer server = StaticFilesTestServer.Create(app => app.UseDefaultFiles(new DefaultFilesOptions()\n+            using (var fileProvder = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), baseDir)))\n             {\n-                RequestPath = new PathString(baseUrl),\n-                FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), baseDir))\n-            }));\n-            HttpResponseMessage response = await server.CreateRequest(requestUrl).GetAsync();\n+                TestServer server = StaticFilesTestServer.Create(app => app.UseDefaultFiles(new DefaultFilesOptions()\n+                {\n+                    RequestPath = new PathString(baseUrl),\n+                    FileProvider = fileProvder\n+                }));\n+                HttpResponseMessage response = await server.CreateRequest(requestUrl).GetAsync();","path":"test/Microsoft.AspNet.StaticFiles.Tests/DefaultFilesMiddlewareTests.cs","position":109,"original_position":109,"commit_id":"afb0283d9713ef09fa2a55ee8c115fd380bb7453","original_commit_id":"afb0283d9713ef09fa2a55ee8c115fd380bb7453","user":{"login":"dougbu","id":6431421,"avatar_url":"https://avatars.githubusercontent.com/u/6431421?v=3","gravatar_id":"","url":"https://api.github.com/users/dougbu","html_url":"https://github.com/dougbu","followers_url":"https://api.github.com/users/dougbu/followers","following_url":"https://api.github.com/users/dougbu/following{/other_user}","gists_url":"https://api.github.com/users/dougbu/gists{/gist_id}","starred_url":"https://api.github.com/users/dougbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougbu/subscriptions","organizations_url":"https://api.github.com/users/dougbu/orgs","repos_url":"https://api.github.com/users/dougbu/repos","events_url":"https://api.github.com/users/dougbu/events{/privacy}","received_events_url":"https://api.github.com/users/dougbu/received_events","type":"User","site_admin":false},"body":"So much `var`","created_at":"2015-11-30T22:46:18Z","updated_at":"2015-11-30T22:46:18Z","html_url":"https://github.com/aspnet/StaticFiles/pull/88#discussion_r46215886","pull_request_url":"https://api.github.com/repos/aspnet/StaticFiles/pulls/88","_links":{"self":{"href":"https://api.github.com/repos/aspnet/StaticFiles/pulls/comments/46215886"},"html":{"href":"https://github.com/aspnet/StaticFiles/pull/88#discussion_r46215886"},"pull_request":{"href":"https://api.github.com/repos/aspnet/StaticFiles/pulls/88"}}},"pull_request":{"url":"https://api.github.com/repos/aspnet/StaticFiles/pulls/88","id":52189799,"html_url":"https://github.com/aspnet/StaticFiles/pull/88","diff_url":"https://github.com/aspnet/StaticFiles/pull/88.diff","patch_url":"https://github.com/aspnet/StaticFiles/pull/88.patch","issue_url":"https://api.github.com/repos/aspnet/StaticFiles/issues/88","number":88,"state":"open","locked":false,"title":"Dispose FileWatcher in tests","user":{"login":"BrennanConroy","id":7574801,"avatar_url":"https://avatars.githubusercontent.com/u/7574801?v=3","gravatar_id":"","url":"https://api.github.com/users/BrennanConroy","html_url":"https://github.com/BrennanConroy","followers_url":"https://api.github.com/users/BrennanConroy/followers","following_url":"https://api.github.com/users/BrennanConroy/following{/other_user}","gists_url":"https://api.github.com/users/BrennanConroy/gists{/gist_id}","starred_url":"https://api.github.com/users/BrennanConroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrennanConroy/subscriptions","organizations_url":"https://api.github.com/users/BrennanConroy/orgs","repos_url":"https://api.github.com/users/BrennanConroy/repos","events_url":"https://api.github.com/users/BrennanConroy/events{/privacy}","received_events_url":"https://api.github.com/users/BrennanConroy/received_events","type":"User","site_admin":false},"body":"@dougbu ","created_at":"2015-11-30T22:38:00Z","updated_at":"2015-11-30T22:46:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a029858c5b4d051c630f434bd949c47c68cda613","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aspnet/StaticFiles/pulls/88/commits","review_comments_url":"https://api.github.com/repos/aspnet/StaticFiles/pulls/88/comments","review_comment_url":"https://api.github.com/repos/aspnet/StaticFiles/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aspnet/StaticFiles/issues/88/comments","statuses_url":"https://api.github.com/repos/aspnet/StaticFiles/statuses/afb0283d9713ef09fa2a55ee8c115fd380bb7453","head":{"label":"aspnet:brecon/dispose_tests","ref":"brecon/dispose_tests","sha":"afb0283d9713ef09fa2a55ee8c115fd380bb7453","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":16554141,"name":"StaticFiles","full_name":"aspnet/StaticFiles","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/StaticFiles","description":"Middleware for handling requests for file system resources including files and directories.","fork":false,"url":"https://api.github.com/repos/aspnet/StaticFiles","forks_url":"https://api.github.com/repos/aspnet/StaticFiles/forks","keys_url":"https://api.github.com/repos/aspnet/StaticFiles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/StaticFiles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/StaticFiles/teams","hooks_url":"https://api.github.com/repos/aspnet/StaticFiles/hooks","issue_events_url":"https://api.github.com/repos/aspnet/StaticFiles/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/StaticFiles/events","assignees_url":"https://api.github.com/repos/aspnet/StaticFiles/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/StaticFiles/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/StaticFiles/tags","blobs_url":"https://api.github.com/repos/aspnet/StaticFiles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/StaticFiles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/StaticFiles/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/StaticFiles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/StaticFiles/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/StaticFiles/languages","stargazers_url":"https://api.github.com/repos/aspnet/StaticFiles/stargazers","contributors_url":"https://api.github.com/repos/aspnet/StaticFiles/contributors","subscribers_url":"https://api.github.com/repos/aspnet/StaticFiles/subscribers","subscription_url":"https://api.github.com/repos/aspnet/StaticFiles/subscription","commits_url":"https://api.github.com/repos/aspnet/StaticFiles/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/StaticFiles/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/StaticFiles/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/StaticFiles/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/StaticFiles/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/StaticFiles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/StaticFiles/merges","archive_url":"https://api.github.com/repos/aspnet/StaticFiles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/StaticFiles/downloads","issues_url":"https://api.github.com/repos/aspnet/StaticFiles/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/StaticFiles/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/StaticFiles/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/StaticFiles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/StaticFiles/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/StaticFiles/releases{/id}","created_at":"2014-02-05T18:38:58Z","updated_at":"2015-11-29T19:19:39Z","pushed_at":"2015-11-30T22:38:00Z","git_url":"git://github.com/aspnet/StaticFiles.git","ssh_url":"git@github.com:aspnet/StaticFiles.git","clone_url":"https://github.com/aspnet/StaticFiles.git","svn_url":"https://github.com/aspnet/StaticFiles","homepage":"","size":595,"stargazers_count":43,"watchers_count":43,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":12,"forks":30,"open_issues":12,"watchers":43,"default_branch":"dev"}},"base":{"label":"aspnet:dev","ref":"dev","sha":"dcb520f5674b727ba01823d0397274072410d005","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":16554141,"name":"StaticFiles","full_name":"aspnet/StaticFiles","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/StaticFiles","description":"Middleware for handling requests for file system resources including files and directories.","fork":false,"url":"https://api.github.com/repos/aspnet/StaticFiles","forks_url":"https://api.github.com/repos/aspnet/StaticFiles/forks","keys_url":"https://api.github.com/repos/aspnet/StaticFiles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/StaticFiles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/StaticFiles/teams","hooks_url":"https://api.github.com/repos/aspnet/StaticFiles/hooks","issue_events_url":"https://api.github.com/repos/aspnet/StaticFiles/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/StaticFiles/events","assignees_url":"https://api.github.com/repos/aspnet/StaticFiles/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/StaticFiles/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/StaticFiles/tags","blobs_url":"https://api.github.com/repos/aspnet/StaticFiles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/StaticFiles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/StaticFiles/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/StaticFiles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/StaticFiles/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/StaticFiles/languages","stargazers_url":"https://api.github.com/repos/aspnet/StaticFiles/stargazers","contributors_url":"https://api.github.com/repos/aspnet/StaticFiles/contributors","subscribers_url":"https://api.github.com/repos/aspnet/StaticFiles/subscribers","subscription_url":"https://api.github.com/repos/aspnet/StaticFiles/subscription","commits_url":"https://api.github.com/repos/aspnet/StaticFiles/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/StaticFiles/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/StaticFiles/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/StaticFiles/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/StaticFiles/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/StaticFiles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/StaticFiles/merges","archive_url":"https://api.github.com/repos/aspnet/StaticFiles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/StaticFiles/downloads","issues_url":"https://api.github.com/repos/aspnet/StaticFiles/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/StaticFiles/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/StaticFiles/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/StaticFiles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/StaticFiles/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/StaticFiles/releases{/id}","created_at":"2014-02-05T18:38:58Z","updated_at":"2015-11-29T19:19:39Z","pushed_at":"2015-11-30T22:38:00Z","git_url":"git://github.com/aspnet/StaticFiles.git","ssh_url":"git@github.com:aspnet/StaticFiles.git","clone_url":"https://github.com/aspnet/StaticFiles.git","svn_url":"https://github.com/aspnet/StaticFiles","homepage":"","size":595,"stargazers_count":43,"watchers_count":43,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":12,"forks":30,"open_issues":12,"watchers":43,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet/StaticFiles/pulls/88"},"html":{"href":"https://github.com/aspnet/StaticFiles/pull/88"},"issue":{"href":"https://api.github.com/repos/aspnet/StaticFiles/issues/88"},"comments":{"href":"https://api.github.com/repos/aspnet/StaticFiles/issues/88/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet/StaticFiles/pulls/88/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet/StaticFiles/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aspnet/StaticFiles/pulls/88/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet/StaticFiles/statuses/afb0283d9713ef09fa2a55ee8c115fd380bb7453"}}}}