summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.AspNet.Test/OAuthAuthenticationTickerHelperTest.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-03-11 17:15:43 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2012-03-11 17:15:43 -0700
commit15b4b6fbd7d9d3f4f09f95ba54d5389f46a58822 (patch)
tree70cb5ec3763484c7bc6fdb695e34cdb063cb0b50 /src/DotNetOpenAuth.AspNet.Test/OAuthAuthenticationTickerHelperTest.cs
parent71ad97999352d76d50f619e9bec208ec8e3e79c8 (diff)
downloadDotNetOpenAuth-15b4b6fbd7d9d3f4f09f95ba54d5389f46a58822.zip
DotNetOpenAuth-15b4b6fbd7d9d3f4f09f95ba54d5389f46a58822.tar.gz
DotNetOpenAuth-15b4b6fbd7d9d3f4f09f95ba54d5389f46a58822.tar.bz2
Activating StyleCop on aspnet test assembly and fixed issues.
Diffstat (limited to 'src/DotNetOpenAuth.AspNet.Test/OAuthAuthenticationTickerHelperTest.cs')
-rw-r--r--src/DotNetOpenAuth.AspNet.Test/OAuthAuthenticationTickerHelperTest.cs21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/DotNetOpenAuth.AspNet.Test/OAuthAuthenticationTickerHelperTest.cs b/src/DotNetOpenAuth.AspNet.Test/OAuthAuthenticationTickerHelperTest.cs
index 78b8ca6..676a550 100644
--- a/src/DotNetOpenAuth.AspNet.Test/OAuthAuthenticationTickerHelperTest.cs
+++ b/src/DotNetOpenAuth.AspNet.Test/OAuthAuthenticationTickerHelperTest.cs
@@ -1,4 +1,10 @@
-namespace DotNetOpenAuth.Test.Web {
+//-----------------------------------------------------------------------
+// <copyright file="OAuthAuthenticationTickerHelperTest.cs" company="Microsoft">
+// Copyright (c) Microsoft. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace DotNetOpenAuth.Test.Web {
using System;
using System.Web;
using System.Web.Security;
@@ -10,12 +16,12 @@
public class OAuthAuthenticationTickerHelperTest {
[TestCase]
public void SetAuthenticationTicketSetCookieOnHttpResponseWithPersistentSet() {
- SetAuthenticationTicketSetCookieOnHttpResponse(isPersistent: true);
+ this.SetAuthenticationTicketSetCookieOnHttpResponse(isPersistent: true);
}
[TestCase]
public void SetAuthenticationTicketSetCookieOnHttpResponseWithPersistentNotSet() {
- SetAuthenticationTicketSetCookieOnHttpResponse(isPersistent: false);
+ this.SetAuthenticationTicketSetCookieOnHttpResponse(isPersistent: false);
}
[TestCase]
@@ -30,8 +36,7 @@
"OAuth",
FormsAuthentication.FormsCookiePath);
- var cookie = new HttpCookie(name: FormsAuthentication.FormsCookieName,
- value: FormsAuthentication.Encrypt(ticket));
+ var cookie = new HttpCookie(FormsAuthentication.FormsCookieName, FormsAuthentication.Encrypt(ticket));
var cookies = new HttpCookieCollection { cookie };
var context = new Mock<HttpContextBase>();
@@ -69,8 +74,7 @@
null,
FormsAuthentication.FormsCookiePath);
- var cookie = new HttpCookie(name: FormsAuthentication.FormsCookieName,
- value: FormsAuthentication.Encrypt(ticket));
+ var cookie = new HttpCookie(FormsAuthentication.FormsCookieName, FormsAuthentication.Encrypt(ticket));
var cookies = new HttpCookieCollection { cookie };
var context = new Mock<HttpContextBase>();
@@ -97,8 +101,7 @@
"OAuth",
FormsAuthentication.FormsCookiePath);
- var cookie = new HttpCookie(name: "random cookie name",
- value: FormsAuthentication.Encrypt(ticket));
+ var cookie = new HttpCookie("random cookie name", FormsAuthentication.Encrypt(ticket));
var cookies = new HttpCookieCollection { cookie };
var context = new Mock<HttpContextBase>();