Ejemplo n.º 1
0
        public void DeleteEventTest()
        {
            var rawEvents = _calendarController.GetUserEvents();
            var events    = JsonConvert.DeserializeObject <List <Event> >(rawEvents);

            var evt = events.Last();

            _calendarController.DeleteEvent(evt.EventId);

            var newEvents = JsonConvert.DeserializeObject <List <Event> >(rawEvents);

            Assert.AreNotEqual(evt, newEvents.Last().EventId);
        }