System.Data.Entity.DbConfigurationTests.SetSpatialServices.With_key_delegates_to_internal_configuration C# (CSharp) Method

With_key_delegates_to_internal_configuration() private method

private With_key_delegates_to_internal_configuration ( ) : void
return void
            public void With_key_delegates_to_internal_configuration()
            {
                var mockInternalConfiguration = new Mock<InternalConfiguration>(null, null, null, null, null);
                var provider = SqlSpatialServices.Instance;

                var key = new DbProviderInfo("A.Little.Time", "Paul");
                new DbConfiguration(mockInternalConfiguration.Object).SetSpatialServices(key, provider);

                mockInternalConfiguration.Verify(m => m.RegisterSingleton<DbSpatialServices>(provider, key));
            }
        }