Exemplo n.º 1
0
        private ScenarioApptUnitTest Test2()
        {
            ScenarioApptUnitTest scenario = new ScenarioApptUnitTest();

            scenario.DescriptionShort  = "2: 0/2 60min, 1/2 60min just below";
            scenario.Details           = "0/2 60min, 1/2 60min just below";
            scenario.TableAppointments = GenerateTableAppts();
            scenario.AddRow(TimeSpan.FromHours(1), TimeSpan.FromHours(1));
            scenario.AddRow(TimeSpan.FromHours(2), TimeSpan.FromHours(1));
            scenario.ResultExpected = "0,72,300,72;0,144,300,72";
            return(scenario);
        }
Exemplo n.º 2
0
        private ScenarioApptUnitTest Test1()
        {
            ScenarioApptUnitTest scenario = new ScenarioApptUnitTest();

            scenario.DescriptionShort  = "1: 0/2 60min by 1/2 40min at same time";
            scenario.Details           = "0/2 60min by 1/2 40min at same time";
            scenario.TableAppointments = GenerateTableAppts();
            scenario.AddRow(TimeSpan.FromHours(1), TimeSpan.FromHours(1));
            scenario.AddRow(TimeSpan.FromHours(1), TimeSpan.FromMinutes(40));
            scenario.ResultExpected = "0,72,150,72;150,72,150,48";
            return(scenario);
        }
Exemplo n.º 3
0
        private ScenarioApptUnitTest Test11()
        {
            ScenarioApptUnitTest scenario = new ScenarioApptUnitTest();

            scenario.DescriptionShort  = "11: One tall 0/2, 3 short 1/2";
            scenario.Details           = "One tall 0/2, 3 short 1/2";
            scenario.TableAppointments = GenerateTableAppts();
            scenario.AddRow(TimeSpan.FromMinutes(70), TimeSpan.FromMinutes(80));
            scenario.AddRow(TimeSpan.FromMinutes(70), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(100), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(130), TimeSpan.FromMinutes(40));
            scenario.ResultExpected = "0,84,150,96;150,84,150,36;150,120,150,36;150,156,150,48";
            return(scenario);
        }
Exemplo n.º 4
0
        private ScenarioApptUnitTest Test17()
        {
            ScenarioApptUnitTest scenario = new ScenarioApptUnitTest();

            scenario.DescriptionShort  = "17: Three short 0/2, one tall 1/2, add one low";
            scenario.Details           = "";
            scenario.TableAppointments = GenerateTableAppts();
            scenario.AddRow(TimeSpan.FromMinutes(70), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(100), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(130), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(70), TimeSpan.FromMinutes(100));
            scenario.AddRow(TimeSpan.FromMinutes(140), TimeSpan.FromMinutes(40));
            scenario.ResultExpected = "0,84,100,36;0,120,100,36;0,156,100,48;100,84,100,120;200,168,100,48";
            return(scenario);
        }
Exemplo n.º 5
0
        private ScenarioApptUnitTest Test12()
        {
            ScenarioApptUnitTest scenario = new ScenarioApptUnitTest();

            scenario.DescriptionShort  = "12: Starting with #11, add 1 lower 2/3";
            scenario.Details           = "Starting with #11, add 1 lower 2/3";
            scenario.TableAppointments = GenerateTableAppts();
            scenario.AddRow(TimeSpan.FromMinutes(70), TimeSpan.FromMinutes(80));
            scenario.AddRow(TimeSpan.FromMinutes(70), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(100), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(130), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(140), TimeSpan.FromMinutes(30));
            scenario.ResultExpected = "0,84,100,96;150,84,150,36;150,120,150,36;100,156,100,36;200,168,100,36";
            return(scenario);
        }
Exemplo n.º 6
0
        private ScenarioApptUnitTest Test10()
        {
            ScenarioApptUnitTest scenario = new ScenarioApptUnitTest();

            scenario.DescriptionShort  = "10: Cascade of 5 up wrap";
            scenario.Details           = "Cascade of 5 up wrap";
            scenario.TableAppointments = GenerateTableAppts();
            scenario.AddRow(TimeSpan.FromMinutes(90), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(80), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(70), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(60), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(50), TimeSpan.FromMinutes(40));
            scenario.ResultExpected = "0,108,75,48;75,96,75,48;150,84,75,48;225,72,75,48;0,60,75,48";
            return(scenario);
        }
Exemplo n.º 7
0
        private ScenarioApptUnitTest Test9()
        {
            ScenarioApptUnitTest scenario = new ScenarioApptUnitTest();

            scenario.DescriptionShort  = "9: Cascade of 5";
            scenario.Details           = "Cascade of 5";
            scenario.TableAppointments = GenerateTableAppts();
            scenario.AddRow(TimeSpan.FromMinutes(20), TimeSpan.FromMinutes(50));
            scenario.AddRow(TimeSpan.FromMinutes(30), TimeSpan.FromMinutes(50));
            scenario.AddRow(TimeSpan.FromMinutes(40), TimeSpan.FromMinutes(50));
            scenario.AddRow(TimeSpan.FromMinutes(50), TimeSpan.FromMinutes(50));
            scenario.AddRow(TimeSpan.FromMinutes(60), TimeSpan.FromMinutes(50));
            scenario.ResultExpected = "0,24,60,60;60,36,60,60;120,48,60,60;180,60,60,60;240,72,60,60";
            return(scenario);
        }
Exemplo n.º 8
0
        private ScenarioApptUnitTest Test3()
        {
            ScenarioApptUnitTest scenario = new ScenarioApptUnitTest();

            scenario.DescriptionShort  = "3: Cascade of 5 wrap, 10 minutes apart";
            scenario.Details           = "Cascade of 5 wrap, 10 minutes apart";
            scenario.TableAppointments = GenerateTableAppts();
            scenario.AddRow(TimeSpan.FromMinutes(20), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(30), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(40), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(50), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(60), TimeSpan.FromMinutes(40));
            scenario.ResultExpected = "0,24,75,48;75,36,75,48;150,48,75,48;225,60,75,48;0,72,75,48";
            return(scenario);
        }
Exemplo n.º 9
0
        private ScenarioApptUnitTest Test16()
        {
            ScenarioApptUnitTest scenario = new ScenarioApptUnitTest();

            scenario.DescriptionShort  = "16: Starting with #15, add another in the middle";
            scenario.Details           = "";
            scenario.TableAppointments = GenerateTableAppts();
            scenario.AddRow(TimeSpan.FromMinutes(70), TimeSpan.FromMinutes(80));
            scenario.AddRow(TimeSpan.FromMinutes(70), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(100), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(130), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(140), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(70), TimeSpan.FromMinutes(20));
            scenario.AddRow(TimeSpan.FromMinutes(100), TimeSpan.FromMinutes(20));
            scenario.AddRow(TimeSpan.FromMinutes(100), TimeSpan.FromMinutes(20));
            scenario.ResultExpected = "0,84,75,96;100,84,100,36;75,120,75,36;100,156,100,36;200,168,100,36;200,84,100,24;150,120,75,24;225,120,75,24";
            return(scenario);
        }
Exemplo n.º 10
0
        private ScenarioApptUnitTest Test8()
        {
            ScenarioApptUnitTest scenario = new ScenarioApptUnitTest();

            scenario.DescriptionShort  = "8: Cascade of 5 wrap, double below, partial overlap";
            scenario.Details           = "Cascade of 5 wrap, double below, partial overlap";
            scenario.TableAppointments = GenerateTableAppts();
            scenario.AddRow(TimeSpan.FromMinutes(20), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(30), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(40), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(50), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(60), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(110), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(120), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(90), TimeSpan.FromMinutes(100));
            scenario.ResultExpected = "0,24,75,48;75,36,75,48;150,48,75,48;225,60,75,48;0,72,75,48;0,132,75,48;75,144,75,48;150,108,75,120";
            return(scenario);
        }
Exemplo n.º 11
0
        private ScenarioApptUnitTest Test7()
        {
            ScenarioApptUnitTest scenario = new ScenarioApptUnitTest();

            scenario.DescriptionShort  = "7: Cascade of 5 wrap, double below, plus one overlap";
            scenario.Details           = "Cascade of 5 wrap, double below, plus one overlap";
            scenario.TableAppointments = GenerateTableAppts();
            scenario.AddRow(TimeSpan.FromMinutes(20), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(30), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(40), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(50), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(60), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(110), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(120), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(20), TimeSpan.FromMinutes(140));
            scenario.ResultExpected = "0,24,60,48;60,36,60,48;120,48,60,48;180,60,60,48;0,72,60,48;0,132,60,48;60,144,60,48;240,24,60,168";
            return(scenario);
        }
Exemplo n.º 12
0
        private ScenarioApptUnitTest Test18()
        {
            ScenarioApptUnitTest scenario = new ScenarioApptUnitTest();

            scenario.DescriptionShort  = "18: Like 17, but with 5 appointments at left intead of 3";
            scenario.Details           = "";
            scenario.TableAppointments = GenerateTableAppts();
            scenario.AddRow(TimeSpan.FromMinutes(70), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(100), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(130), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(100), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(130), TimeSpan.FromMinutes(40));
            scenario.AddRow(TimeSpan.FromMinutes(70), TimeSpan.FromMinutes(100));
            scenario.AddRow(TimeSpan.FromMinutes(140), TimeSpan.FromMinutes(40));
            scenario.ResultExpected = "0,84,100,36;0,120,75,36;0,156,75,48;75,120,75,36;75,156,75,48;150,84,75,120;225,168,75,48";
            return(scenario);
        }
Exemplo n.º 13
0
        private ScenarioApptUnitTest Test13()
        {
            ScenarioApptUnitTest scenario = new ScenarioApptUnitTest();

            scenario.DescriptionShort  = "13: Starting with #12, add 1 big 3/4";
            scenario.Details           = "Starting with #12, add 1 big 3/4";
            scenario.TableAppointments = GenerateTableAppts();
            scenario.AddRow(TimeSpan.FromMinutes(70), TimeSpan.FromMinutes(80));
            scenario.AddRow(TimeSpan.FromMinutes(70), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(100), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(130), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(140), TimeSpan.FromMinutes(30));
            scenario.AddRow(TimeSpan.FromMinutes(60), TimeSpan.FromMinutes(140));
            scenario.ResultExpected = "0,84,75,96;75,84,75,36;75,120,75,36;75,156,75,36;150,168,75,36;225,72,75,168";
            return(scenario);
        }