示例#1
0
        public OverrideTest()
        {
            var builder = new ConfigurationBuilder()
                          .AddInMemoryCollection(new Dictionary <string, string>()
            {
                { "Dragon:Data:ConnectionString", $@"Server=localhost;Database=DRAGON_CPRX_TEST;Trusted_Connection=True;" }
            });


            m_config = builder.Build();

            m_loggerFactory = new LoggerFactory();

            m_connectionFactory = new DefaultDbConnectionContextFactory(m_config, m_loggerFactory);

            m_setup = new RepositorySetup(m_connectionFactory, m_config, m_loggerFactory);

            var ctxFetcher = new TestContextFetcher(new TestContext());

            m_executor = new CPRTransactionableExecutor(new TestStore(), ctxFetcher, m_config, m_loggerFactory);
        }