Skip to content

Commit ed576c9

Browse files
committed
Removed the FakeHttpContext for .Net Core
HttpContextBase has been removed from .Net Core. creating a fake on HttpContext is complex, so I, for now, remove the Fake context alltogether.
1 parent fdbf3c9 commit ed576c9

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/FluentAssertions.Mvc.Shared/Fakes/FakeHttpContext.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
#if !NETSTANDARD1_6
2+
using System;
23
using System.Web;
34

45
namespace FluentAssertions.Mvc.Fakes
@@ -126,3 +127,4 @@ public override void EndOfRequest()
126127

127128

128129
}
130+
#endif

src/FluentAssertions.Mvc.Shared/Fakes/FakeHttpRequest.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Web;
1+
#if !NETSTANDARD1_6
2+
using System.Web;
23
using System.Collections.Specialized;
34

45
namespace FluentAssertions.Mvc.Fakes
@@ -58,3 +59,4 @@ public override NameValueCollection ServerVariables
5859
}
5960
}
6061
}
62+
#endif

src/FluentAssertions.Mvc.Shared/Fakes/FakeHttpResponse.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Web;
1+
#if !NETSTANDARD1_6
2+
using System.Web;
23

34
namespace FluentAssertions.Mvc.Fakes
45
{
@@ -10,3 +11,4 @@ public override string ApplyAppPathModifier(string virtualPath)
1011
}
1112
}
1213
}
14+
#endif

0 commit comments

Comments
 (0)