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