private static void CreateRecordWithDialogueClass(TestRecord testRecord) { var recordCreator = new CreateRecordDialogue(null); recordCreator.ProcessMonth(testRecord.month); recordCreator.ProcessDay(testRecord.day); recordCreator.ProcessTime(testRecord.startTime, true); recordCreator.ProcessTime(testRecord.endTime, false); recordCreator.ProcessApprove("Approve"); recordCreator.Create(testRecord.user); }
//Tests end private static void CreateRecordWithDialogueClass(User user, string day, string month, string startTime, string endTime) { var recordCreator = new CreateRecordDialogue(null); recordCreator.ProcessMonth(month); recordCreator.ProcessDay(day); recordCreator.ProcessTime(startTime, true); recordCreator.ProcessTime(endTime, false); recordCreator.ProcessApprove("Approve"); recordCreator.Create(user); }