System.Data.Entity.DbConfigurationTests.SetTableExistenceChecker.Delegates_to_internal_configuration C# (CSharp) Méthode

Delegates_to_internal_configuration() private méthode

private Delegates_to_internal_configuration ( ) : void
Résultat void
            public void Delegates_to_internal_configuration()
            {
                var mockInternalConfiguration = new Mock<InternalConfiguration>(null, null, null, null, null);
                var checker = new Mock<TableExistenceChecker>().Object;

                new DbConfiguration(mockInternalConfiguration.Object).SetTableExistenceChecker("Karl", checker);

                mockInternalConfiguration.Verify(m => m.RegisterSingleton(checker, "Karl"));
            }
        }