Example #1
0
 public void Create()
 {
     Utilities.SQL.MicroORM.Database TestObject = null;
     Assert.DoesNotThrow <Exception>(() =>
     {
         TestObject = new Utilities.SQL.MicroORM.Database("Data Source=localhost;Initial Catalog=TestDatabase;Integrated Security=SSPI;Pooling=false", "Database1");
     });
     Assert.Equal("Data Source=localhost;Initial Catalog=TestDatabase;Integrated Security=SSPI;Pooling=false", TestObject.Connection);
     Assert.Equal(0, TestObject.Mappings.Count);
     Assert.Equal("Database1", TestObject.Name);
 }
 public void Create()
 {
     Utilities.SQL.MicroORM.Database TestObject = null;
     Assert.DoesNotThrow(() =>
     {
         TestObject = new Utilities.SQL.MicroORM.Database("Data Source=localhost;Initial Catalog=TestDatabase;Integrated Security=SSPI;Pooling=false", "Database1");
     });
     Assert.Equal("Data Source=localhost;Initial Catalog=TestDatabase;Integrated Security=SSPI;Pooling=false", TestObject.Connection);
     Assert.Equal(0, TestObject.Mappings.Count);
     Assert.Equal("Database1", TestObject.Name);
 }