public void TestTotalWeeksInMonth() { int actual = TotalWeeksInMonthHelper.GetTotalWeeksInMonth(DateTime.Today); int expected = WeeksInMonth(); Assert.AreEqual(expected, actual); }
public void CalculateMonthlySalaryForPartTime() { int totalWeeks = TotalWeeksInMonthHelper.GetTotalWeeksInMonth(DateTime.Today); if (!HasErrors) { MonthlyPartTime = (double.Parse(Hours) * WORKING_HOURLY_RATE_FOR_PARTTIME_TEACHER * totalWeeks).ToString("0,0.00"); } else { MonthlyPartTime = "0.00"; } }