private static GraffitiInfoPart GetPart() { GraffitiInfoPartSeeder seeder = new GraffitiInfoPartSeeder(); IItem item = new Item { FacetId = "default", CreatorId = "zeus", UserId = "zeus", Description = "Test item", Title = "Test Item", SortKey = "" }; return((GraffitiInfoPart)seeder.GetPart(item, null, null)); }
public void Seed_Ok() { GraffitiInfoPartSeeder seeder = new GraffitiInfoPartSeeder(); seeder.SetSeedOptions(_seedOptions); IPart part = seeder.GetPart(_item, null, _factory); Assert.NotNull(part); GraffitiInfoPart p = part as GraffitiInfoPart; Assert.NotNull(p); TestHelper.AssertPartMetadata(p); // TODO: assert properties like: // Assert.NotEmpty(p.Works); }