System.Data.Entity.DbConfigurationTests.SetContextFactory.Non_generic_SetContextFactory_delegates_to_internal_configuration C# (CSharp) Метод

Non_generic_SetContextFactory_delegates_to_internal_configuration() приватный Метод

private Non_generic_SetContextFactory_delegates_to_internal_configuration ( ) : void
Результат void
            public void Non_generic_SetContextFactory_delegates_to_internal_configuration()
            {
                var mockInternalConfiguration = new Mock<InternalConfiguration>(null, null, null, null, null);
                Func<DbContext> factory = () => null;

                new DbConfiguration(mockInternalConfiguration.Object).SetContextFactory(typeof(SomeContext), factory);

                mockInternalConfiguration.Verify(m => m.RegisterSingleton(factory, typeof(SomeContext)));
            }