示例#1
0
        public async void User_can_drag_a_widget_from_widget_infos_section_to_an_area()
        {
            // When user drags a widget from the widget infos section to an area
            var widgetId = await _svc.CreateWidgetAsync(MY_WIDGET_TYPE);

            await _svc.AddWidgetToAreaAsync(widgetId, WidgetService.BlogSidebar1.Id, 0);

            // Then the area would contain the widget
            var area = await _svc.GetAreaAsync(WidgetService.BlogSidebar1.Id);

            Assert.Contains(widgetId, area.WidgetIds);
        }