public void FileServiceLocator_Bestaat() { //Arrange var serviceLocator = new ServiceLocationXMLDataMapper("../../locationData.xml"); //Assert Assert.IsInstanceOfType(serviceLocator, typeof(ServiceLocationXMLDataMapper)); }
public void GetMexAdress_WithoutVersion_MultipleRecordsFound() { //Arrange var fileServiceLocator = new ServiceLocationXMLDataMapper(@"..\Minor.ServiceBus.PfSLocatorService.DAL.Test\locationData.xml"); //Act var adress = fileServiceLocator.FindMetadataEndpointAddress("BSCursusadministatie", "Production"); //Assert //Exception thrown }
public void GetMexAdressMetNaamEnProfielEnVersion() { //Arrange var fileServiceLocator = new ServiceLocationXMLDataMapper(@"..\Minor.ServiceBus.PfSLocatorService.DAL.Test\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(@"..\Minor.ServiceBus.PfSLocatorService.DAL.Test\locationData.xml"); //Act var adress = fileServiceLocator.FindMetadataEndpointAddress("BSKlantbeheer", "Development"); //Assert Assert.AreEqual("http://localhost:30412/BSKlantbeheer/mex", adress); }
public void GetMexAdress_WithoutVersion_MultipleRecordsFound_ExcMessage() { //Arrange var fileServiceLocator = new ServiceLocationXMLDataMapper(@"..\Minor.ServiceBus.PfSLocatorService.DAL.Test\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 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); }