public void ReturnTestBusinessDay(string firstDate, string secondDate, string datesList, string value) { Base_CountBetweenTwoDatesBC businessDay = new Base_CountBetweenTwoDatesBC(); string[] datesString = datesList.Split(","); List <DateTime> dates = datesString.Select(date => DateTime.Parse(date)).ToList(); Assert.Equal(businessDay.GetCountBusinessDays <DataCountBetweenTwoDates>(Convert.ToDateTime(firstDate), Convert.ToDateTime(secondDate), dates)?.Data?.Result.ToString(), value); }
public void ReturnTestWeekdays(string firstDate, string secondDate, string value) { Base_CountBetweenTwoDatesBC weekdays = new Base_CountBetweenTwoDatesBC(); Assert.Equal(weekdays.GetCountWeekdays <DataCountBetweenTwoDates>(Convert.ToDateTime(firstDate), Convert.ToDateTime(secondDate))?.Data?.Result.ToString(), value); }