Пример #1
0
        private void InitViz3DControl()
        {
            try
            {
                if (vizcore3d == null)
                {
                    // Initialize VIZCore3D.NET
                    ModuleInitializer.Run();

                    // Construction
                    vizcore3d         = new VIZCore3DControl();
                    vizcorehost.Child = vizcore3d;

                    // Event
                    vizcore3d.OnInitializedVIZCore3D += VIZCore3D_OnInitializedVIZCore3D;
                }

                //NextStepDispatcher next = new NextStepDispatcher();
                //next.NextStep += OnConstructNext;
                //next.Start();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Пример #2
0
        protected BaseTestClass()
        {
            Logger          = Mock.Create <ILogger>();
            Mapper          = new MapperConfiguration(cfg => { cfg.AddProfile(new AutoMapperProfile()); }).CreateMapper();
            ContextManager  = Mock.Create <IDbContextManager>();
            ResourceManager = Mock.Create <IResourceManager>();

            ModuleInitializer.Run();
        }