public void NoneEqualsBindingDefaultServiceWindow()
        {
            var rl = new Microsoft.BizTalk.Deployment.Binding.ReceiveLocation();

            ((DateTime)ServiceWindow.None.StartTime).Should().Be(rl.FromTime);
            ((DateTime)ServiceWindow.None.StopTime).Should().Be(rl.ToTime);
            ServiceWindow.None.Enabled.Should().BeFalse();
        }
        static Schedule()
        {
            var rl = new Microsoft.BizTalk.Deployment.Binding.ReceiveLocation();

            // force TimeZone and AutomaticallyAdjustForDaylightSavingTime as default rl.ScheduleTimeZone and rl.ScheduleAutoAdjustToDaylightSaving
            // values do not match the values exported in the bindings for a Schedule that has not been configured
            None = new(TimeZoneInfo.Utc.Id, true, rl.StartDate, rl.EndDate, RecurringServiceWindow.None);
        }
Пример #3
0
        public void NoneEqualsBindingDefaultServiceWindow()
        {
            var rl = new Microsoft.BizTalk.Deployment.Binding.ReceiveLocation();

            Assert.That((DateTime)ServiceWindow.None.StartTime, Is.EqualTo(rl.FromTime));
            Assert.That((DateTime)ServiceWindow.None.StopTime, Is.EqualTo(rl.ToTime));
            Assert.That(ServiceWindow.None.Enabled, Is.False);
        }
        public void DefaultEqualsBindingDefaultServiceWindow()
        {
            var rl = new Microsoft.BizTalk.Deployment.Binding.ReceiveLocation();

            var sut = new DailyServiceWindow();

            sut.From.Should().Be(rl.ScheduleRecurFrom);
            sut.Interval.Should().Be(rl.ScheduleRecurInterval);
        }
        public void DefaultEqualsBindingDefaultServiceWindow()
        {
            var rl = new Microsoft.BizTalk.Deployment.Binding.ReceiveLocation();

            var sut = new OrdinalMonthlyServiceWindow();

            sut.IsOrdinal.Should().BeTrue();
            sut.Months.Should().Be(rl.ScheduleMonths);
            sut.Ordinality.Should().Be(rl.ScheduleOrdinalType);
            sut.WeekDays.Should().Be(rl.ScheduleOrdinalDayOfWeek);
        }
        public void DefaultEqualsBindingDefaultServiceWindow()
        {
            var rl = new Microsoft.BizTalk.Deployment.Binding.ReceiveLocation();

            var sut = new CalendricalMonthlyServiceWindow();

            sut.IsOrdinal.Should().BeFalse();
            sut.Months.Should().Be(rl.ScheduleMonths);
            sut.Days.Should().Be(rl.ScheduleMonthDays);
            sut.OnLastDay.Should().Be(rl.ScheduleLastDayOfMonth);
        }
Пример #7
0
        public void NoneEqualsBindingDefaultSchedule()
        {
            var rl = new Microsoft.BizTalk.Deployment.Binding.ReceiveLocation();

            Schedule.None.TimeZone.Should().Be(TimeZoneInfo.Utc);
            Schedule.None.AutomaticallyAdjustForDaylightSavingTime.Should().BeTrue();
            Schedule.None.StartDate.Should().Be(rl.StartDate);
            Schedule.None.StartDateEnabled.Should().BeFalse();
            Schedule.None.StopDate.Should().Be(rl.EndDate);
            Schedule.None.StopDateEnabled.Should().BeFalse();
            Schedule.None.RecurrenceType.Should().Be(rl.ScheduleRecurrenceType);
        }
        public void NoneEqualsBindingDefaultServiceWindow()
        {
            var rl = new Microsoft.BizTalk.Deployment.Binding.ReceiveLocation();

            Assert.That(Schedule.None.StartDate, Is.EqualTo(rl.StartDate));
            Assert.That(Schedule.None.StartDateEnabled, Is.False);
            Assert.That(Schedule.None.StopDate, Is.EqualTo(rl.EndDate));
            Assert.That(Schedule.None.StopDateEnabled, Is.False);

            Assert.That(Schedule.None.ServiceWindow.Enabled, Is.EqualTo(ServiceWindow.None.Enabled));
            Assert.That(Schedule.None.ServiceWindow.StartTime, Is.EqualTo(ServiceWindow.None.StartTime));
            Assert.That(Schedule.None.ServiceWindow.StopTime, Is.EqualTo(ServiceWindow.None.StopTime));
        }
        static WeeklyServiceWindow()
        {
            var rl = new Microsoft.BizTalk.Deployment.Binding.ReceiveLocation();

            Default = new(rl.ScheduleRecurFrom, rl.ScheduleRecurInterval, rl.ScheduleDaysOfWeek);
        }
Пример #10
0
        static Schedule()
        {
            var rl = new Microsoft.BizTalk.Deployment.Binding.ReceiveLocation();

            _none = new Schedule(rl.StartDate, rl.EndDate, ServiceWindow.None);
        }