Пример #1
0
        public void UpdateEventTest()
        {
            var rawEvents = _calendarController.GetUserEvents();
            var events    = JsonConvert.DeserializeObject <List <EventViewModel> >(rawEvents);
            var evt       = events.Last();

            var eventModel = _evnt;

            eventModel.Id    = evt.Id;
            eventModel.Title = "Updated title";
            _calendarController.UpdateEvent(eventModel);

            Assert.AreNotEqual(evt.Title,
                               JsonConvert.DeserializeObject <List <Event> >(_calendarController.GetUserEvents()).Last().Title);
        }