Ejemplo n.º 1
0
        public void CanGetAssemblerForSqlDatabase()
        {
            IDatabaseAssembler assembler
                = new DatabaseCustomFactory().GetAssembler(typeof(SqlDatabase), "ignore", reflectionCache);

            Assert.IsNotNull(assembler);
        }
		public void CanGetAssemblerForSqlDatabase()
		{
			IDatabaseAssembler assembler
				= new DatabaseCustomFactory().GetAssembler(typeof(SqlDatabase), "ignore", reflectionCache);

			Assert.IsNotNull(assembler);
		}
Ejemplo n.º 3
0
        public void AssemblerCanAssembleSqlDatabase()
        {
            ConnectionStringSettings settings
                = new ConnectionStringSettings("name", "test;", DbProviderMapping.DefaultSqlProviderName);
            IDatabaseAssembler assembler
                = new DatabaseCustomFactory().GetAssembler(typeof(SqlDatabase), settings.Name, reflectionCache);
            Database database = assembler.Assemble(settings.Name, settings, configurationSource);

            Assert.IsNotNull(database);
            Assert.AreSame(typeof(SqlDatabase), database.GetType());
            Assert.AreEqual(settings.ConnectionString, database.ConnectionStringWithoutCredentials);
        }
		public void AssemblerCanAssembleSqlDatabase()
		{
			ConnectionStringSettings settings 
				= new ConnectionStringSettings("name", "test;", DbProviderMapping.DefaultSqlProviderName);

			IDatabaseAssembler assembler
				= new DatabaseCustomFactory().GetAssembler(typeof(SqlDatabase), settings.Name, reflectionCache);
			Database database = assembler.Assemble(settings.Name, settings, configurationSource);

			Assert.IsNotNull(database);
			Assert.AreSame(typeof(SqlDatabase), database.GetType());
			Assert.AreEqual(settings.ConnectionString, database.ConnectionStringWithoutCredentials);
		}
		public void SetUp()
		{
			factory = new DatabaseCustomFactory();
			reflectionCache = new ConfigurationReflectionCache();
		}
 public void SetUp()
 {
     factory         = new DatabaseCustomFactory();
     reflectionCache = new ConfigurationReflectionCache();
 }