persistence/DD.Persistence.IntegrationTests/Data/Defaults.cs

51 lines
1.5 KiB
C#
Raw Normal View History

using DD.Persistence.Database.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DD.Persistence.IntegrationTests.Data;
public static class Defaults
{
public static ChangeLogCommit[] ChangeLogCommits => new ChangeLogCommit[]
{
new ChangeLogCommit()
{
Id = new Guid("88aa55da-807c-46f9-adba-88e8f0c48af1"),
Creation = DateTimeOffset.UtcNow.AddDays(-2),
Comment = "Коммит",
IdAuthor = new Guid("067beb95-3b6d-7370-8000-1b9b336a6cdc"),
}
};
public static ChangeLog[] ChangeLogs => new ChangeLog[]
{
new ChangeLog()
{
Id = new Guid("88aa55da-807c-46f9-adba-88e8f0c48af2"),
Creation = ChangeLogCommits.First().Creation,
DiscriminatorId = new Guid("f7a1eed1-ef47-4360-9d4f-a30a0d8bb45e"),
IdCreatedCommit = ChangeLogCommits.First().Id,
Value = new Dictionary<string, object>
{
{ "1", 1 },
{ "2", 2 }
}
},
new ChangeLog()
{
Id = new Guid("88aa55da-807c-46f9-adba-88e8f0c48af6"),
Creation = ChangeLogCommits.First().Creation,
DiscriminatorId = new Guid("f7a1eed1-ef47-4360-9d4f-a30a0d8bb45e"),
IdCreatedCommit = ChangeLogCommits.First().Id,
Value = new Dictionary<string, object>
{
{ "1", 1 },
{ "2", 2 }
}
}
};
}