Пример #1
0
        public void Map_CanMapGoogleCalendarListEntry_ToCalendar()
        {
            var calendar = new GoogleListEntry {
                Id = "My id"
            };

            var actual = this.Mapper.Map <Core.Entities.Models.Calendar>(calendar);

            Assert.IsNotNull(actual);
            Assert.AreEqual(calendar.Id, actual.Id);
        }
Пример #2
0
 public void Load(Google.Apis.Calendar.v3.Data.CalendarListEntry remote_calendar)
 {
     this.Name    = remote_calendar.Summary;
     this.BgColor = Tools.StringToColor(remote_calendar.BackgroundColor);
     this.FgColor = Tools.StringToColor(remote_calendar.ForegroundColor);
 }