This repository was archived by the owner on Nov 20, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Microsoft.AspNet.Http.Abstractions
test/Microsoft.AspNet.Http.Tests Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ namespace Microsoft.AspNet.Http
77{
88 public interface IHttpContextFactory
99 {
10- HttpContext CreateHttpContext ( IFeatureCollection featureCollection ) ;
10+ HttpContext Create ( IFeatureCollection featureCollection ) ;
1111 void Dispose ( HttpContext httpContext ) ;
1212 }
1313}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public HttpContextFactory(IHttpContextAccessor httpContextAccessor)
1414 _httpContextAccessor = httpContextAccessor ;
1515 }
1616
17- public HttpContext CreateHttpContext ( IFeatureCollection featureCollection )
17+ public HttpContext Create ( IFeatureCollection featureCollection )
1818 {
1919 var httpContext = new DefaultHttpContext ( featureCollection ) ;
2020 _httpContextAccessor . HttpContext = httpContext ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public void CreateHttpContextSetsHttpContextAccessor()
1616 var contextFactory = new HttpContextFactory ( accessor ) ;
1717
1818 // Act
19- var context = contextFactory . CreateHttpContext ( new FeatureCollection ( ) ) ;
19+ var context = contextFactory . Create ( new FeatureCollection ( ) ) ;
2020
2121 // Assert
2222 Assert . True ( ReferenceEquals ( context , accessor . HttpContext ) ) ;
You can’t perform that action at this time.
0 commit comments