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