public void TestNonExistentEndpoint()
        {
            ApplicationData appData = new ApplicationData
                                      {
                                          { "First_name", "Blah" },
                                          { "Last_name", "McR&D" }
                                      };

            ServiceEndpointUtilisation endpointUtilisation = new ServiceEndpointUtilisation { ServiceEndpointId = "0" };

            ServiceEndpointValidator validator = new ServiceEndpointValidator(endpointUtilisation, this.endpointList, this.communicator);
            ValidationResults results = validator.Validate(new Application(appData));
            Assert.AreEqual(true, results.IsValid);
        }
        public void TestMultipleErrorArray()
        {
            ApplicationData appData = new ApplicationData
                                      {
                                          { "First_name", "Blah" },
                                          { "Last_name", "McR&D" }
                                      };

            ServiceEndpointUtilisation endpointUtilisation = new ServiceEndpointUtilisation { ServiceEndpointId = "1" };

            ServiceEndpointValidator validator = new ServiceEndpointValidator(endpointUtilisation, this.endpointList, this.communicator);
            ValidationResults results = validator.Validate(new Application(appData));
            Assert.AreEqual(false, results.IsValid);
            Assert.AreEqual(2, results.Count(x => x.Key == "First_name"));
            Assert.AreEqual(0, results.Count(x => x.Key == "Last_name"));
        }