bool CheckBugInTask(ITask task) { if (task.GetType() == typeof(Feture)) { Feture temp = (Feture)task; if (temp.RefTask != null) { return(true); } } return(false); }
private ITask GetTypeOfTask() { ITask task; int typeOfTask = random.Next(0, 100); if (typeOfTask <= 85) { task = new Feture(); } else { task = new TechnicalDebt(); } return(task); }