public void LoadFromConfigTest(string fileName)
        {
            var service = UtilsTests.DeserializeService(UtilsTests.GetPathForFile(fileName));

            var host = createMicroserviceHost();

            host.LoadService(service);

            host.Open();

            var instance = host.StartService(service.OrchestrationQName, service.InputArgument);

            Debug.WriteLine($"Microservice instance {instance.OrchestrationInstance.InstanceId} started");

            waitOnInstance(host, service, instance);
        }
        public void LoadFromConfigTest()
        {
            var service = UtilsTests.DeserializeService(getPathForFile("SimpleConfig1.xml"));

            var host = createMicroserviceHost();

            host.LoadService(service);

            host.Open();

            var instance = host.StartService(service.OrchestrationQName, service.ServiceConfiguration);

            Debug.WriteLine($"Microservice instance {instance.OrchestrationInstance.InstanceId} started");

            waitOnInstance(host, service, instance);
        }
        public void LoadServiceFromXml(string fileName)
        {
            Microservice microSvc;

            var host = createMicroserviceHost();

            var instances = host.LoadServiceFromXml(UtilsTests.GetPathForFile(fileName),
                                                    new List <Type>()
            {
                typeof(TestOrchestrationInput)
            }, out microSvc);

            var instance = host.StartService(microSvc.OrchestrationQName, microSvc.InputArgument);

            Debug.WriteLine($"Microservice instance {instance.OrchestrationInstance.InstanceId} started");

            waitOnInstance(host, microSvc, instance);
        }