Skip to content

Commit

Permalink
fixes from code review of PR 212
Browse files Browse the repository at this point in the history
  • Loading branch information
explunit committed Mar 24, 2015
1 parent 09d1b61 commit 55fd99c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ Lisa Bylund
Sebastian Allard
Jozef Raschmann
Tor-Bj�rn Holmstr�m
Stephen Patches
4 changes: 2 additions & 2 deletions Kentor.AuthServices.Tests/WebSSO/AuthServicesUrlsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void AuthServicesUrls_Ctor_NullCheckApplicationUrl()
[TestMethod]
public void AuthServicesUrls_Ctor_NullCheckModulePath()
{
Action a = () => new AuthServicesUrls(new Uri("http://localhost"), (string)null);
Action a = () => new AuthServicesUrls(new Uri("http://localhost"), modulePath: null);

a.ShouldThrow<ArgumentNullException>("modulePath");
}
Expand Down Expand Up @@ -103,7 +103,7 @@ public void AuthServicesUrls_Ctor_AllowsNullAcs()
[TestMethod]
public void AuthServicesUrls_Ctor_NullCheckSignin()
{
Action a = () => new AuthServicesUrls(new Uri("http://localhost/signin"), (Uri)null);
Action a = () => new AuthServicesUrls(new Uri("http://localhost/signin"), signInUrl: null);

a.ShouldThrow<ArgumentNullException>("signInUrl");
}
Expand Down
3 changes: 2 additions & 1 deletion Kentor.AuthServices/WebSSO/AuthServicesUrls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public AuthServicesUrls(HttpRequestData request, ISPOptions spOptions)
/// </summary>
/// <param name="applicationUrl">The full Url to the root of the application.</param>
/// <param name="modulePath">Path of module, starting with / and ending without.</param>
[System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Design", "CA1057:StringUriOverloadsCallSystemUriOverloads" )]
[System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Design", "CA1057:StringUriOverloadsCallSystemUriOverloads"
, Justification = "Incorrect warning. modulePath isn't a string representation of a Uri" )]
public AuthServicesUrls(Uri applicationUrl, string modulePath)
{
if (applicationUrl == null)
Expand Down

0 comments on commit 55fd99c

Please sign in to comment.