diff --git a/MobileVehicleInspection.Api.Tests/Library/DanishTransportAuthorityResponseParserTests.cs b/MobileVehicleInspection.Api.Tests/Library/DanishTransportAuthorityResponseParserTests.cs new file mode 100644 index 0000000..8b4a50d --- /dev/null +++ b/MobileVehicleInspection.Api.Tests/Library/DanishTransportAuthorityResponseParserTests.cs @@ -0,0 +1,25 @@ +using System.IO; +using MobileVehicleInspection.Api.Library; +using MobileVehicleInspection.Contracts; +using NUnit.Framework; + +namespace MobileVehicleInspection.Api.Tests.Library +{ + public class DanishTransportAuthorityResponseParserTests + { + public const string ValidMarkup = ""; + + [Test] + public void Parse_ValidInput_ReturnsVehicle() + { + var sut = new DanishTransportAuthorityResponseParser(); + string valid; + using (var reader = new StreamReader(GetType().Assembly.GetManifestResourceStream(GetType(), "valid.html"))) + valid = reader.ReadToEnd(); + + Vehicle result = sut.Parse(valid); + Assert.Inconclusive(); + Assert.AreEqual(new RegistrationNumber("XK95962"), result.RegistrationNumber); + } + } +} \ No newline at end of file diff --git a/MobileVehicleInspection.Api.Tests/Library/valid.html b/MobileVehicleInspection.Api.Tests/Library/valid.html new file mode 100644 index 0000000..fd8b508 --- /dev/null +++ b/MobileVehicleInspection.Api.Tests/Library/valid.html @@ -0,0 +1,629 @@ + + + + +