Removing attributes for migrations as a library that does this already exists.

Updating a few DTOs for programmatic creation.
This commit is contained in:
Morten@Thinkpad-X220.ab-nat1.dk
2012-10-17 10:12:30 -02:00
parent 2523781fc1
commit 5bd2059cd7
28 changed files with 112 additions and 286 deletions

View File

@@ -33,7 +33,7 @@ namespace Umbraco.Tests.Persistence
engine.CreateDatabase();
//Create the umbraco database
DatabaseFactory.Current.Database.Initialize();
//DatabaseFactory.Current.Database.Initialize();
}
[Test]
@@ -59,5 +59,42 @@ namespace Umbraco.Tests.Persistence
//transaction.Complete();
}
}
[Test]
public void Can_Create_umbracoAppTree_Table()
{
var factory = DatabaseFactory.Current;
using (Transaction transaction = factory.Database.GetTransaction())
{
factory.Database.CreateTable<AppTreeDto>();
//transaction.Complete();
}
}
[Test]
public void Can_Create_cmsContentType2ContentType_Table()
{
var factory = DatabaseFactory.Current;
using (Transaction transaction = factory.Database.GetTransaction())
{
factory.Database.CreateTable<ContentType2ContentTypeDto>();
//transaction.Complete();
}
}
[Test, NUnit.Framework.Ignore]
public void Can_Create_cmsContentTypeAllowedContentType_Table()
{
var factory = DatabaseFactory.Current;
using (Transaction transaction = factory.Database.GetTransaction())
{
//Requires the cmsContentType table in order to create refecences
factory.Database.CreateTable<ContentTypeAllowedContentTypeDto>();
//transaction.Complete();
}
}
}
}