first commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System.Xml;
|
||||
using Xunit;
|
||||
using OnlineBankingAuth.Parsers;
|
||||
|
||||
namespace OnlineBankingAuth.Tests
|
||||
{
|
||||
public class AuthenticationParserTest
|
||||
{
|
||||
[Fact]
|
||||
public void AuthenticationParse()
|
||||
{
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.Load("ExampleXML" + System.IO.Path.DirectorySeparatorChar + "DecryptedAssertion.xml");
|
||||
|
||||
XmlElement readAssertion = doc.DocumentElement;
|
||||
|
||||
var parser = new SAMLParser();
|
||||
var parsedAssertion = parser.ParseAssertion(readAssertion);
|
||||
|
||||
Assert.Equal("DI0019", parsedAssertion.FI_ID);
|
||||
Assert.Equal("123456", parsedAssertion.MemberID);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user