Skip to content

Commit

Permalink
Format DiagnosticsHookFixture
Browse files Browse the repository at this point in the history
  • Loading branch information
jrsconfitto committed Jun 3, 2013
1 parent f6847ab commit 8488c08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Nancy.Tests/Unit/Diagnostics/DiagnosticsHookFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public void Should_return_info_page_if_password_null()
// Given
var diagsConfig = new DiagnosticsConfiguration { Password = null, CryptographyConfiguration = this.cryptoConfig };

var bootstrapper = new ConfigurableBootstrapper(with =>{
var bootstrapper = new ConfigurableBootstrapper(with =>
{
with.EnableAutoRegistration();
with.DiagnosticsConfiguration(diagsConfig);
with.Diagnostics<DefaultDiagnostics>();
Expand Down Expand Up @@ -296,7 +297,7 @@ private DiagnosticsSession DecodeCookie(INancyCookie nancyCookie)
var hmacStringLength = Base64Helpers.GetBase64Length(this.cryptoConfig.HmacProvider.HmacLength);
var encryptedSession = cookieValue.Substring(hmacStringLength);
var decrypted = this.cryptoConfig.EncryptionProvider.Decrypt(encryptedSession);

return this.objectSerializer.Deserialize(decrypted) as DiagnosticsSession;
}
}
Expand Down

0 comments on commit 8488c08

Please sign in to comment.