public void CheckHourSpreadingForOutliers() { var themes = new List <(string, List <string>)>(); for (int i = 0; i < 5; i++) { themes.Add(("t" + i, new List <string> { "st" + i })); } var d = DisciplineInfo.CreateSecondPassDI("test", 3, (20, 40, 30), themes, true); }
public ParseInfo ParseInfoFromSheet() { var dInfo = Handler.GetValues("page1!A5:F5"); var dName = Handler.GetValues("page1!B3"); var dThemes = Handler.GetValues("page1!B7:F8"); var pi = new ParseInfo { CourseName = Handler.GetValues("page1!B1").Values[0][0].ToString(), Disciplines = new List <DisciplineInfo> { DisciplineInfo.CreateSecondPassDI( dName.Values[0][0].ToString(), int.Parse(dInfo.Values[0][0].ToString()), (int.Parse(dInfo.Values[0][3].ToString()), int.Parse(dInfo.Values[0][4].ToString()), int.Parse(dInfo.Values[0][5].ToString())), GetThemeInfos(dThemes), dInfo.Values[0][1].ToString().Contains("Экзамен") ) } }; return(pi); }