Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed Saml2REquesterId class - It's just an EntityId
- Use Uri and EntityId types instead of strings. - Add nullcheck for required ProviderId property of IdpEntry.
- Loading branch information
1 parent
c9b4bbd
commit 0a501f6
Showing
8 changed files
with
83 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using FluentAssertions; | ||
using Kentor.AuthServices.Saml2P; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using System; | ||
using System.IdentityModel.Metadata; | ||
|
||
namespace Kentor.AuthServices.Tests.Saml2P | ||
{ | ||
[TestClass] | ||
public class Saml2IdpEntryTests | ||
{ | ||
[TestMethod] | ||
public void Saml2IdpEntry_NullCheckProviderId() | ||
{ | ||
var subject = new Saml2IdpEntry(new EntityId("urn:foo")); | ||
|
||
subject.Invoking(s => s.ProviderId = null) | ||
.ShouldThrow<ArgumentNullException>(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters