Ejemplo n.º 1
0
        public void Test_Bootstrap_Calls_Our_Mock()
        {
            MockBootstrapAction.CallCount = 0;
            var runner = new MvxBootstrapRunner();

            runner.Run(GetType().Assembly);
            Assert.AreEqual(1, MockBootstrapAction.CallCount);
        }
Ejemplo n.º 2
0
        protected virtual void PerformBootstrapActions()
        {
            var bootstrapRunner = new MvxBootstrapRunner();

            foreach (var assembly in GetBootstrapOwningAssemblies())
            {
                bootstrapRunner.Run(assembly);
            }
        }
Ejemplo n.º 3
0
        protected virtual Task PerformBootstrapActionsAsync()
        {
            SetupLog?.Trace("Setup: Bootstrap actions");

            var bootstrapRunner = new MvxBootstrapRunner();

            var tasks = GetBootstrapOwningAssemblies()
                        .Select(ass => Task.Run(() => bootstrapRunner.Run(ass)));

            return(Task.WhenAll(tasks));
        }
Ejemplo n.º 4
0
        protected virtual Task PerformBootstrapActions()
        {
            return(Task.Run(() =>
            {
                SetupLog?.Trace("Setup: Bootstrap actions");

                var bootstrapRunner = new MvxBootstrapRunner();
                foreach (var assembly in GetBootstrapOwningAssemblies())
                {
                    bootstrapRunner.Run(assembly);
                }
            }));
        }