예제 #1
0
        public override void SetUp()
        {
            base.SetUp();
            TerminalBootstrapper.ConfigureTest();

            _activity      = ObjectFactory.GetInstance <IActivity>();
            _crate         = ObjectFactory.GetInstance <ICrateManager>();
            _eventReceived = false;

            FixtureData.AddTestActivityTemplate();
        }
예제 #2
0
        //constructor method as it is run at the test start
        public override void SetUp()
        {
            base.SetUp();

            InitializeContainer();

            CrateManager    = ObjectFactory.GetInstance <ICrateManager>();
            ActivityService = new ActivityServiceMock(ObjectFactory.GetInstance <Hub.Interfaces.IActivity>());
            ObjectFactory.Container.Inject(typeof(Hub.Interfaces.IActivity), ActivityService);
            ContainerService = ObjectFactory.GetInstance <Hub.Interfaces.IContainerService>();
            Plan             = ObjectFactory.GetInstance <Hub.Interfaces.IPlan>();

            FixtureData.AddTestActivityTemplate();
        }
        public override void SetUp()
        {
            base.SetUp();

            TerminalBootstrapper.ConfigureTest();

            _crateManager = ObjectFactory.GetInstance <ICrateManager>();

            string samplePayload = _crateManager.CrateStorageAsStr(new CrateStorage(Crate.FromContent("ExplicitData_PayloadCrate", new OperationalStateCM())));

            ObjectFactory.Configure(x =>
            {
                x.For <IRestfulServiceClient>().Use <RestfulServiceClient>().SelectConstructor(() => new RestfulServiceClient());
                x.For <IHubCommunicator>().Use(new ExplicitDataHubCommunicator(samplePayload, _crateManager)).Singleton();
            });

            FixtureData.AddTestActivityTemplate();
        }
예제 #4
0
 public override void SetUp()
 {
     base.SetUp();
     FixtureData.AddTestActivityTemplate();
     _planNode = ObjectFactory.GetInstance <IPlanNode>();
 }