public void Get_configured_types_should_return_types()
        {
            var modelConfiguration = new ModelConfiguration();
            var configurationRegistrar
                = new ConfigurationRegistrar(modelConfiguration)
                  .Add(new ComplexTypeConfiguration <object>())
                  .Add(new EntityTypeConfiguration <string>());

            Assert.Equal(2, configurationRegistrar.GetConfiguredTypes().Count());
        }
        public void AddFromAssembly_throw_if_assembly_is_null()
        {
            var registrar = new ConfigurationRegistrar(new ModelConfiguration());

            Assert.Equal("assembly", Assert.Throws <ArgumentNullException>(() => registrar.AddFromAssembly(null)).ParamName);
        }
Exemplo n.º 3
0
 private void RegistEntityMap(System.Data.Entity.ModelConfiguration.Configuration.ConfigurationRegistrar configurationRegistrar)
 {
     this.RegistEntityMapProduct(configurationRegistrar);
 }