示例#1
0
		public EventPage (Page page, Event pEvent, EventLocation location, List<EventTag> tags, List<EventCategory> categories) :
			base (page.PrimaryKey, page.Id, page.Title, page.Type, page.Status, page.Modified, page.Description,
			     page.Content, page.ParentId, page.Order, page.Thumbnail, page.Author, page.AutoTranslated, page.AvailableLanguages)
		{
			Event = pEvent;
			Location = location;
			Tags = tags;
			Categories = categories;
		}
		public static void AssertPage (Page expected, Page actual)
		{
			AssertNullOrNotNull (expected, actual);
			Assert.AreEqual (expected.Id, actual.Id);
			Assert.AreEqual (expected.Title, actual.Title);
			Assert.AreEqual (expected.Type, actual.Type);
			Assert.AreEqual (expected.Status, actual.Status);
			Assert.AreEqual (expected.Modified, actual.Modified);
			Assert.AreEqual (expected.Description, actual.Description);
			Assert.AreEqual (expected.Content, actual.Content);
			Assert.AreEqual (expected.ParentId, actual.ParentId);
			Assert.AreEqual (expected.Order, actual.Order);
			Assert.AreEqual (expected.Thumbnail, actual.Thumbnail);
			Assert.AreEqual (expected.AutoTranslated, actual.AutoTranslated);
			AssertAvailableLanguage (expected.AvailableLanguages, actual.AvailableLanguages);
			AssertAuthor (expected.Author, actual.Author);
		}