public void SetContainer() { //configure the container _container = new NetBpmContainer(new XmlInterpreter("WindsorConfig.xml")); servicelocator = ServiceLocator.Instance; processDefinitionService = servicelocator.GetService(typeof(IProcessDefinitionService)) as IProcessDefinitionService; executionComponent = servicelocator.GetService(typeof(IExecutionApplicationService)) as IExecutionApplicationService; }
public void SetContainer() { //configure the container _container = new NetBpmContainer(new XmlInterpreter(TestHelper.GetConfigDir()+"app_config.xml")); testUtil = new TestUtil(); servicelocator = ServiceLocator.Instance; definitionComponent = servicelocator.GetService(typeof (IDefinitionSessionLocal)) as IDefinitionSessionLocal; executionComponent = servicelocator.GetService(typeof (IExecutionSessionLocal)) as IExecutionSessionLocal; testUtil.LoginUser("ae"); }
public void SetUp() { //configure the container container = new NetBpm.NetBpmContainer(new XmlInterpreter(TestHelper.GetConfigDir()+"app_config.xml")); servicelocator = ServiceLocator.Instance; orgComp = servicelocator.GetService(typeof (IOrganisationService)) as IOrganisationService; }
public void SetContainer() { //configure the container _container = new NetBpmContainer(new XmlInterpreter("WindsorConfig.xml")); servicelocator = ServiceLocator.Instance; _organisationService = servicelocator.GetService(typeof(IOrganisationService)) as IOrganisationService; }
public void SetContainer() { //configure the container _container = new NetBpmContainer(new XmlInterpreter(TestHelper.GetConfigDir()+"app_config.xml")); testUtil = new TestUtil(); servicelocator = ServiceLocator.Instance; definitionComponent = servicelocator.GetService(typeof (IDefinitionSessionLocal)) as IDefinitionSessionLocal; executionComponent = servicelocator.GetService(typeof (IExecutionSessionLocal)) as IExecutionSessionLocal; schedulerComponent = servicelocator.GetService(typeof (ISchedulerSessionLocal)) as ISchedulerSessionLocal; organisationComponent = servicelocator.GetService(typeof (IOrganisationSessionLocal)) as IOrganisationSessionLocal; testUtil.LoginUser("ae"); // deploy Archiv FileInfo parFile = new FileInfo(TestHelper.GetExampleDir()+GetParArchiv()); FileStream fstream = parFile.OpenRead(); byte[] b = new byte[parFile.Length]; fstream.Read(b, 0, (int) parFile.Length); definitionComponent.DeployProcessArchive(b); }