summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.AspNet.Test/OAuthClientTest.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/OAuthClientTest.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/OAuthClientTest.cs')
-rw-r--r--src/DotNetOpenAuth.AspNet.Test/OAuthClientTest.cs26
1 files changed, 19 insertions, 7 deletions
diff --git a/src/DotNetOpenAuth.AspNet.Test/OAuthClientTest.cs b/src/DotNetOpenAuth.AspNet.Test/OAuthClientTest.cs
index f0eadd1..3b72b9e 100644
--- a/src/DotNetOpenAuth.AspNet.Test/OAuthClientTest.cs
+++ b/src/DotNetOpenAuth.AspNet.Test/OAuthClientTest.cs
@@ -1,12 +1,18 @@
-namespace DotNetOpenAuth.AspNet.Test {
+//-----------------------------------------------------------------------
+// <copyright file="OAuthClientTest.cs" company="Microsoft">
+// Copyright (c) Microsoft. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace DotNetOpenAuth.AspNet.Test {
using System;
using System.Web;
+ using DotNetOpenAuth.AspNet;
+ using DotNetOpenAuth.AspNet.Clients;
using DotNetOpenAuth.Messaging;
using DotNetOpenAuth.OAuth.Messages;
- using DotNetOpenAuth.AspNet.Clients;
using Moq;
using NUnit.Framework;
- using DotNetOpenAuth.AspNet;
[TestFixture]
public class OAuthClientTest {
@@ -26,10 +32,9 @@
public void RequestAuthenticationInvokeMethodOnWebWorker() {
// Arrange
var webWorker = new Mock<IOAuthWebWorker>(MockBehavior.Strict);
- webWorker.Setup(
- w => w.RequestAuthentication(
- It.Is<Uri>(u => u.ToString().Equals("http://live.com/my/path.cshtml?q=one"))))
- .Verifiable();
+ webWorker
+ .Setup(w => w.RequestAuthentication(It.Is<Uri>(u => u.ToString().Equals("http://live.com/my/path.cshtml?q=one"))))
+ .Verifiable();
var client = new MockOAuthClient(webWorker.Object);
var returnUri = new Uri("http://live.com/my/path.cshtml?q=one");
@@ -113,10 +118,17 @@
}
private class MockOAuthClient : OAuthClient {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="MockOAuthClient"/> class.
+ /// </summary>
public MockOAuthClient()
: this(new Mock<IOAuthWebWorker>().Object) {
}
+ /// <summary>
+ /// Initializes a new instance of the <see cref="MockOAuthClient"/> class.
+ /// </summary>
+ /// <param name="worker">The worker.</param>
public MockOAuthClient(IOAuthWebWorker worker)
: base("mockoauth", worker) {
}