Beispiel #1
0
        public async Task TestPutCalendarItemUpdate()
        {
            using (var context = new BankCalendarContext(options))
            {
                // Given
                string       title         = "putEvent";
                CalendarItem calendaritem1 = context.CalendarItem.Where(x => x.Event == calendarEvents[0]).Single();
                calendaritem1.Event = title;

                // When
                CalendarController calendarController = new CalendarController(context);
                IActionResult      result             = await calendarController.PutCalendarItem(calendaritem1.ID, calendaritem1) as IActionResult;

                // Then
                calendaritem1 = context.CalendarItem.Where(x => x.Event == title).Single();
            }
        }