Permalink
Browse files

Removed unnecessary fake now the configurable module supplies module/…

…context
  • Loading branch information...
1 parent 2bb19df commit 354af64d727d53a8890c2966eb6b8318965a218c @grumpydev grumpydev committed Oct 2, 2012
Showing with 1 addition and 9 deletions.
  1. +1 −9 src/Nancy.Tests.Functional/Tests/ContentNegotiationFixture.cs
@@ -434,7 +434,7 @@ public void Should_throw_exception_if_view_location_fails()
{
with.ResponseProcessor<ViewProcessor>();
- with.Module(new FakeModuleInvalidViewName());
+ with.Module(new ConfigurableNancyModule(x => x.Get("/FakeModuleInvalidViewName", CreateNegotiatedResponse(neg => neg.WithView("blahblahblah")))));
});
// When
@@ -580,13 +580,5 @@ public Response Process(MediaRange requestedMediaRange, dynamic model, NancyCont
return (string) model;
}
}
-
- public class FakeModuleInvalidViewName : NancyModule
- {
- public FakeModuleInvalidViewName()
- {
- Get["/FakeModuleInvalidViewName"] = _ => View["blahblahblah"];
- }
- }
}
}

0 comments on commit 354af64

Please sign in to comment.