Beispiel #1
0
        protected BaseTest()
        {
            var file    = new DirectoryInfo(AppContext.BaseDirectory).GetFiles("*.config").First().FullName;
            var builder = new ConfigurationBuilder().AddConfigFile(file);

            var config = builder.Build();

            Bootstrapper.Build(config);
            FileServer.Build(config);
        }
        private static void InitBootstrapperAndFileService()
        {
            var file = new DirectoryInfo(AppContext.BaseDirectory).GetFiles("*UnitTests.dll.config").First().FullName;
            var builder = new ConfigurationBuilder().AddConfigFile(file);

            var config = builder.Build();
            Bootstrapper.Build(config);
            FileServer.Build(config);
            AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;
        }