auto increment ID.

model tables are automatically created.
This commit is contained in:
kay.one 2013-03-24 03:09:32 -07:00
commit 7603d8e1ba
8 changed files with 35 additions and 6 deletions

View file

@ -16,7 +16,7 @@ namespace NzbDrone.Core.Test.Configuration
public void Setup()
{
Mocker.GetMock<IConfigRepository>().Setup(c => c.All())
.Returns(new List<Config> { new Config { Key = "Key1", Value = "Value1" } });
.Returns(new List<Config> { new Config { Key = "key1", Value = "Value1" } });
}

View file

@ -150,7 +150,7 @@ namespace NzbDrone.Core.Test.Configuration
if (propertyInfo.PropertyType == typeof(string))
{
value = new Guid().ToString();
value = Guid.NewGuid().ToString();
}
else if (propertyInfo.PropertyType == typeof(int))
{