Пример #1
0
        public void GetPropertyParser_NextDayThresholdIsSent_TimeSpanPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.NextDayThreshold));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <TimeSpanPropertyParser>();
        }
Пример #2
0
        public void GetPropertyParser_BootstrapGlyphiconsIconsIsSent_ButtonIconsPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.BootstrapGlyphicons));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <ButtonIconsPropertyParser>();
        }
Пример #3
0
        public void GetPropertyParser_EventBackgroundColorIsSent_ColorPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.EventBackgroundColor));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <ColorPropertyParser>();
        }
Пример #4
0
        public void GetPropertyParser_EventLongPressDelayIsSent_IntegerPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.EventLongPressDelay));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <IntegerPropertyParser>();
        }
Пример #5
0
        public void GetPropertyParser_WeekNumbersWithinDaysIsSent_BoolPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.WeekNumbersWithinDays));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <BoolPropertyParser>();
        }
Пример #6
0
        public void GetPropertyParser_DragRevertDurationIsSent_IntegerPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.DragRevertDuration));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <IntegerPropertyParser>();
        }
Пример #7
0
        public void GetPropertyParser_EventOverlapIsSent_StringPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.EventOverlap));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <StringPropertyParser>();
        }
Пример #8
0
        public void GetPropertyParser_SlotLabelIntervalIsSent_TimeSpanPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.SlotLabelInterval));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <TimeSpanPropertyParser>();
        }
Пример #9
0
        public void GetPropertyParser_DefaultDateIsSent_DateTimePropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.DefaultDate));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <DateTimePropertyParser>();
        }
Пример #10
0
        public void GetPropertyParser_HandleWindowResizeIsSent_DoublePropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.HandleWindowResize));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <BoolPropertyParser>();
        }
Пример #11
0
        public void GetPropertyParser_ViewsIsSent_CustomViewPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.Views));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <CustomViewPropertyParser>();
        }
Пример #12
0
        public void GetPropertyParser_AspectRatioIsSent_DoublePropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.AspectRatio));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <DoublePropertyParser>();
        }
Пример #13
0
        public void GetPropertyParser_ContentHeightIsSent_UnitPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.ContentHeight));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <UnitPropertyParser>();
        }
Пример #14
0
        public void GetPropertyParser_BusinessHoursIsSent_BusinessHoursPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.BusinessHours));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <BusinessHoursPropertyParser>();
        }
Пример #15
0
        public void GetPropertyParser_EventDurationEditableIsSent_BoolPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.EventDurationEditable));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <BoolPropertyParser>();
        }
Пример #16
0
        public void GetPropertyParser_DateAlignmentIsSent_EnumPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.DateAlignment));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <EnumPropertyParser>();
        }
Пример #17
0
        public void GetPropertyParser_FirstDayIsSent_DayOfWeekPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.FirstDay));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <DayOfWeekPropertyParser>();
        }
Пример #18
0
        public void GetPropertyParser_ThemeSystemIsSent_ThemeSystemPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.ThemeSystem));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <ThemeSystemPropertyParser>();
        }
Пример #19
0
        public void GetPropertyParser_DragScrollIsSent_BoolPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.DragScroll));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <BoolPropertyParser>();
        }
Пример #20
0
        public void GetPropertyParser_SelectMinDistanceIsSent_IntegerPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.SelectMinDistance));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <IntegerPropertyParser>();
        }
Пример #21
0
        public void GetPropertyParser_EventConstraintIsSent_ObjectPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.EventConstraint));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <ObjectPropertyParser>();
        }
Пример #22
0
        public void GetPropertyParser_DefaultAllDayEventDurationIsSent_TimeSpanPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.DefaultAllDayEventDuration));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <TimeSpanPropertyParser>();
        }
Пример #23
0
        public void GetPropertyParser_DropAcceptIsSent_FunctionPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.DropAccept));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <FunctionPropertyParser>();
        }
Пример #24
0
        public void GetPropertyParser_HiddenDaysIsSent_ArrayPropertyParserIsCreated()
        {
            PropertyInfo    property       = typeof(FullCalendarParameters).GetProperties().Single(x => x.Name == nameof(FullCalendarParameters.HiddenDays));
            IPropertyParser propertyParser = PropertyParserFactory.GetPropertyParser(property);

            propertyParser.Should().BeOfType <ArrayPropertyParser>();
        }