コード例 #1
0
		public static void AssertEvent (Event expected, Event actual)
		{
			AssertNullOrNotNull (expected, actual);
			Assert.AreEqual (expected.Id, actual.Id);
			Assert.AreEqual (expected.AllDay, actual.AllDay);
			Assert.AreEqual (expected.StartTime, actual.StartTime);
			Assert.AreEqual (expected.EndTime, actual.EndTime);
		}
コード例 #2
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;
		}