Пример #1
0
        public void CreateInstance_with_arguments_works()
        {
            var result = DbContextActivator.CreateInstance(
                typeof(TestContext),
                null,
                null,
                new[] { "A", "B" });

            Assert.IsType <TestContext>(result);
        }
Пример #2
0
        public void CreateInstance_works()
        {
            var result = DbContextActivator.CreateInstance(typeof(TestContext));

            Assert.IsType <TestContext>(result);
        }