public void FileServiceLocator_Bestaat()
        {
            //Arrange
            var serviceLocator = new ServiceLocationXmlDatamapper(@"..\..\..\locationData.xml");

            //Assert
            Assert.IsInstanceOfType(serviceLocator, typeof(ServiceLocationXmlDatamapper));
        }
Exemplo n.º 2
0
        public void FileServiceLocator_Bestaat()
        {
            //Arrange
            var serviceLocator = new ServiceLocationXmlDatamapper(@"..\..\..\locationData.xml");

            //Assert
            Assert.IsInstanceOfType(serviceLocator, typeof(ServiceLocationXmlDatamapper));
        }
Exemplo n.º 3
0
        public void GetMexAdress_WithoutVersion_NoRecordsFound()
        {
            //Arrange
            var fileServiceLocator = new ServiceLocationXmlDatamapper(@"locationData.xml");

            //Act
            var adress = fileServiceLocator.FindMetadataEndpointAddress("BSCursusafsadfs", "Prodduction");

            //Assert
            //Exception thrown
        }
Exemplo n.º 4
0
        public void PathfileIsEmptyString_En_Verwacht_FilePathNotDefinedException()
        {
            //Arrange
            var fileServiceLocator = new ServiceLocationXmlDatamapper("");

            //Act
            var adress = fileServiceLocator.FindMetadataEndpointAddress("BSCurusadministatie", "Production");

            //Assert
            Assert.AreEqual("http://infosupport.intranet/CAS/mex", adress);
        }
Exemplo n.º 5
0
        public void GetMexAdressMetNaamEnProfielEnVersion()
        {
            //Arrange
            var fileServiceLocator = new ServiceLocationXmlDatamapper(@"locationData.xml");

            //Act
            var adress = fileServiceLocator.FindMetadataEndpointAddress("PcSPlanningmaken", "Acceptation", 1.0m);

            //Assert
            Assert.AreEqual("http://infosupport.test/CAS", adress);
        }
Exemplo n.º 6
0
        public void GetMexAdressMetNaamEnProfiel()
        {
            //Arrange
            var fileServiceLocator = new ServiceLocationXmlDatamapper(@"locationData.xml");

            //Act
            var adress = fileServiceLocator.FindMetadataEndpointAddress("BSKlantbeheer", "Development");

            //Assert
            Assert.AreEqual("http://localhost:30412/BSKlantbeheer/mex", adress);
        }
Exemplo n.º 7
0
        public void GetMexAdress_WithoutVersion_VersionedRecordFound()
        {
            //Arrange
            var fileServiceLocator = new ServiceLocationXmlDatamapper(@"locationData.xml");

            //Act
            var adress = fileServiceLocator.FindMetadataEndpointAddress("PcSPlanningmaken", "Acceptation");

            //Assert
            //Exception thrown
        }
        public void GetMexAdress_WithoutVersion_NoRecordsFound()
        {
            //Arrange
            var fileServiceLocator = new ServiceLocationXmlDatamapper(@"locationData.xml");

            //Act
            var adress = fileServiceLocator.FindMetadataEndpointAddress("BSCursusafsadfs", "Prodduction");

            //Assert
            //Exception thrown
        }
        public void GetMexAdressMetNaamEnProfielEnVersion()
        {
            //Arrange
            var fileServiceLocator = new ServiceLocationXmlDatamapper(@"locationData.xml");

            //Act
            var adress = fileServiceLocator.FindMetadataEndpointAddress("PcSPlanningmaken", "Acceptation", 1.0m);

            //Assert
            Assert.AreEqual("http://infosupport.test/CAS", adress);
        }
        public void GetMexAdressMetNaamEnProfiel()
        {
            //Arrange
            var fileServiceLocator = new ServiceLocationXmlDatamapper(@"locationData.xml");

            //Act
            var adress = fileServiceLocator.FindMetadataEndpointAddress("BSKlantbeheer", "Development");

            //Assert
            Assert.AreEqual("http://localhost:30412/BSKlantbeheer/mex", adress);
        }
Exemplo n.º 11
0
        public void GetMexAdress_WithoutVersion_MultipleRecordsFound_ExcMessage()
        {
            //Arrange
            var fileServiceLocator = new ServiceLocationXmlDatamapper(@"locationData.xml");

            try
            {
                //Act
                var adress = fileServiceLocator.FindMetadataEndpointAddress("BSCursusadministatie", "Production");
            }
            catch (MultipleRecordsFoundException ex)
            {
                //Assert
                Assert.AreEqual("Multiple location services found instead of one", ex.Message);
            }
        }
Exemplo n.º 12
0
        public void GetMexAdress_WithoutVersion_NoRecordsFound_ExcMessage()
        {
            //Arrange
            var fileServiceLocator = new ServiceLocationXmlDatamapper(@"locationData.xml");

            try
            {
                //Act
                var adress = fileServiceLocator.FindMetadataEndpointAddress("BSCursusafsadfs", "Prodduction");
            }
            catch (NoRecordsFoundException ex)
            {
                //Assert
                Assert.AreEqual("No location services found", ex.Message);
            }
        }
        public void GetMexAdress_WithoutVersion_MultipleRecordsFound_ExcMessage()
        {
            //Arrange
            var fileServiceLocator = new ServiceLocationXmlDatamapper(@"locationData.xml");

            try
            {
                //Act
                var adress = fileServiceLocator.FindMetadataEndpointAddress("BSCursusadministatie", "Production");
            }
            catch (MultipleRecordsFoundException ex)
            {
                //Assert
                Assert.AreEqual("Multiple location services found instead of one", ex.Message);
            }
        }
        public void GetMexAdress_WithoutVersion_NoRecordsFound_ExcMessage()
        {
            //Arrange
            var fileServiceLocator = new ServiceLocationXmlDatamapper(@"locationData.xml");

            try
            {
                //Act
                var adress = fileServiceLocator.FindMetadataEndpointAddress("BSCursusafsadfs", "Prodduction");
            }
            catch (NoRecordsFoundException ex)
            {
                //Assert
                Assert.AreEqual("No location services found", ex.Message);
            }
        }
        public void PathfileIsEmptyString_En_Verwacht_FilePathNotDefinedException()
        {
            //Arrange
            var fileServiceLocator = new ServiceLocationXmlDatamapper("");

            //Act
            var adress = fileServiceLocator.FindMetadataEndpointAddress("BSCurusadministatie", "Production");

            //Assert
            Assert.AreEqual("http://infosupport.intranet/CAS/mex", adress);
        }
        public void GetMexAdress_WithoutVersion_VersionedRecordFound()
        {
            //Arrange
            var fileServiceLocator = new ServiceLocationXmlDatamapper(@"locationData.xml");

            //Act
            var adress = fileServiceLocator.FindMetadataEndpointAddress("PcSPlanningmaken", "Acceptation");

            //Assert
            //Exception thrown
        }