public void InitializeFixture(string language)
        {
            var source = new UnitTestsTemplatesSource();

            GenContext.Bootstrap(source, new FakeGenShell(), language);

            CodeGen.Initialize(source.Id, "0.0");

            GenContext.ToolBox.Repo.SynchronizeAsync(true).Wait();
        }
        public void InitializeFixture(string language)
        {
            var source = new UnitTestsTemplatesSource();

            GenContext.Bootstrap(source, new FakeGenShell(language), language);

            GenContext.ToolBox.Repo.SynchronizeAsync().Wait();

            Repository = GenContext.ToolBox.Repo;
        }
        public TemplatesFixture()
        {
            var source = new UnitTestsTemplatesSource();

            GenContext.Bootstrap(source, new FakeGenShell());

            GenContext.ToolBox.Repo.SynchronizeAsync().Wait();

            Repository = GenContext.ToolBox.Repo;
        }
        public TemplatesFixture()
        {
            var source = new UnitTestsTemplatesSource();

            CodeGen.Initialize(source.Id, "0.0");

            Repository = new TemplatesRepository(source, Version.Parse("0.0.0.0"));

            Repository.SynchronizeAsync(true).Wait();
        }
Exemplo n.º 5
0
        public void InitializeFixture(string platform, string language)
        {
            var source = new UnitTestsTemplatesSource(null);

            GenContext.Bootstrap(source, new TestShell(platform, language), platform, language);
            if (!_syncExecuted)
            {
                GenContext.ToolBox.Repo.SynchronizeAsync(true).Wait();
                _syncExecuted = true;
            }

            Repository = GenContext.ToolBox.Repo;
        }
        public void InitializeFixture(string language)
        {
            var source = new UnitTestsTemplatesSource();

            GenContext.Bootstrap(source, new FakeGenShell(language), language);
            if (!_syncExecuted)
            {
                GenContext.ToolBox.Repo.SynchronizeAsync().Wait();
                _syncExecuted = true;
            }
            else
            {
                GenContext.ToolBox.Repo.CheckForUpdatesAsync().Wait();
            }

            Repository = GenContext.ToolBox.Repo;
        }