public void RdwRequest() { // Arrange var verzoek = File.ReadAllText("XMLTestFiles/Correct_KeuringsVerzoek.xml"); var target = new RDWAgent(); var result = target.SendKeuringsVerzoekAsync(verzoek).Result; //Act var response = File.ReadAllText("XMLTestFiles/Correct_KeuringsResponse.xml"); //Assert Assert.IsNotNull(response); }
public void BadRequestTest() { // Arrange var verzoek = File.ReadAllText("XMLTestFiles/Incorrect_KeuringsVerzoek.xml"); var target = new RDWAgent(); try { var result = target.SendKeuringsVerzoekAsync(verzoek).Result; Assert.Fail(); } catch (Exception exception) { Assert.IsInstanceOfType(exception, typeof(AggregateException)); } }