Merge remote-tracking branch 'xpicio/nancy' into nancy
Removed unused references
Don't force simple anonymous methods to single-line
Added SharpRaven.Nancy.WebTest package repository
Added TODO: We should retrieve an IRavenClient instance from the application container.
R# and simplification
Added Nancy.Testing, NUnit and NSubstitute to SharpRaven.Nancy.WebTests
Rejigged the DefaultModule to throw exception so the ApplicationStartup pipeline registration can act upon it.
Added NancyTest to see that IRaveClient is invoked when an exception occurs.
Replaced IApplicationStartup with an IRequestStartup implementation so we get a fresh IRavenClient instance from the IoC container on every request. Solves the TODO added in 0e0662e7d7518d30898190cff6631a0e30bef709 and makes the test pass.
Made the NSubstitute assert specifically check for the thrown DivideByZeroException instead of any odd exception.
Renamed ApplicationStartup.cs to SentryRequestStartup.cs
Added documentation to ISentryRequest
No need to explicitly auto-register; Nancy does this itself.
R#
Guard against null in the NancyContext.Request object, which it will be in a test.
Added Microsoft.CSharp and System.Configuration to the SharpRaven.Nancy.WebTest project
Set the GUID returned from Sentry on NancyContext.Items and Exception.Data with a new Configuration key called 'SentryEventGuid'.
SentryRequest.Data should contain the POSTed form values dictionary, not the HTTP body string.
Renamed RavenClient.cs to NancyContextJsonPacketFactory.cs in preparation for a little architecture rejig.