public void WhenGivenAValidSL2Message_ThenDataIsTransformed() { var transformer = new StudentLoanNoticeTransformer(); var fileToTransform = TestResponses.SL2Response; var xmlDocument = new XmlDocument(); xmlDocument.LoadXml(fileToTransform); var results = transformer.Transform(xmlDocument); Assert.IsTrue(results.Any()); }
public void WhenGivenAnInvalidMessage_ThenNoRecordsAreReturned() { var transformer = new StudentLoanNoticeTransformer(); var fileToTransform = TestResponses.P6Response; var xmlDocument = new XmlDocument(); xmlDocument.LoadXml(fileToTransform); var results = transformer.Transform(xmlDocument); Assert.IsFalse(results.Any()); }
public void WhenGivenANullDocument_ThrowsAnArguementNullException() { var transformer = new StudentLoanNoticeTransformer(); transformer.Transform(null); }