Ejemplo n.º 1
0
 public void TearDown()
 {
     _container.Dispose();
     _container     = null;
     serviceLocator = null;
     obj            = null;
 }
Ejemplo n.º 2
0
 public void SetUp()
 {
     //configure the container
     _container     = new NetBpm.NetBpmContainer(new XmlInterpreter(TestHelper.GetConfigDir() + "app_config.xml"));
     serviceLocator = ServiceLocator.Instance;
     obj            = null;
 }
Ejemplo n.º 3
0
		public void TearDown()
		{
			_container.Dispose();
			_container = null;
			serviceLocator = null;
			obj = null;
		}
Ejemplo n.º 4
0
		public void SetUp()
		{
			//configure the container
			_container = new NetBpm.NetBpmContainer(new XmlInterpreter(TestHelper.GetConfigDir()+"app_config.xml"));
			serviceLocator = ServiceLocator.Instance;
			obj = null;
		}
Ejemplo n.º 5
0
		public void ServiceLocatorStressTest()
		{
			for (int i=1;i<5;i++)
			{
				//configure the container
				NetBpmContainer container = new NetBpm.NetBpmContainer(new XmlInterpreter(TestHelper.GetConfigDir()+"app_config.xml"));
				IProcessDefinitionService definitionComponent = null;

				definitionComponent = ServiceLocator.Instance.GetService(typeof (IProcessDefinitionService)) as IProcessDefinitionService;
				IList definitions = definitionComponent.GetProcessDefinitions(null);

				Assert.IsNotNull(definitions);

				ServiceLocator.Instance.Release(definitionComponent);
				container.Dispose();
				container=null;
			}
		}
Ejemplo n.º 6
0
        public void ServiceLocatorStressTest()
        {
            for (int i = 1; i < 5; i++)
            {
                //configure the container
                NetBpmContainer           container           = new NetBpm.NetBpmContainer(new XmlInterpreter(TestHelper.GetConfigDir() + "app_config.xml"));
                IProcessDefinitionService definitionComponent = null;

                definitionComponent = ServiceLocator.Instance.GetService(typeof(IProcessDefinitionService)) as IProcessDefinitionService;
                IList definitions = definitionComponent.GetProcessDefinitions(null);

                Assert.IsNotNull(definitions);

                ServiceLocator.Instance.Release(definitionComponent);
                container.Dispose();
                container = null;
            }
        }