示例#1
0
        //--------------------CONSTRUCTORS------------------------------
        /// <summary>
        /// Default contructor for the Hourly Tracker Form
        /// </summary>
        public FrmMain()
        {
            InitializeComponent();
            CalenderMonthDisplay.MaxSelectionCount = 1;
            yearObject = new Year(2015);//This will be replaced with a file uploader.
            clocker = new Clocker();

            //DEBUG ONLY
            yearObject.months[6].workWeeks[3].DailyWorkDetailRecords[1].HoursWorked = 7;
            yearObject.months[6].workWeeks[3].DailyWorkDetailRecords[1].WorkDescription = "Marianna's Work";
            yearObject.months[6].workWeeks[3].DailyWorkDetailRecords[2].HoursWorked = 8;
            yearObject.months[6].workWeeks[3].DailyWorkDetailRecords[2].WorkDescription = "Nanny Work";
            yearObject.months[6].workWeeks[3].DailyWorkDetailRecords[3].HoursWorked = 6;
            yearObject.months[6].workWeeks[3].DailyWorkDetailRecords[3].WorkDescription = "Beachbody Work";
            yearObject.months[6].workWeeks[3].DailyWorkDetailRecords[4].HoursWorked = 9;
            yearObject.months[6].workWeeks[3].DailyWorkDetailRecords[4].WorkDescription = "Personnal Work";
            yearObject.months[6].workWeeks[3].DailyWorkDetailRecords[5].HoursWorked = 6.5;
            yearObject.months[6].workWeeks[3].DailyWorkDetailRecords[5].WorkDescription = "Friday excercise Work";
        }
示例#2
0
        public void CreateYear()
        {
            //arrange
            int newYear = 2015;

            //act
            Year year2015 = new Year(newYear);

            //assert
            Assert.AreEqual(newYear, year2015.YearDate);
            Assert.IsNotNull(year2015.months);
        }