/// <summary> /// Constructor. /// </summary> public AssignmentService( DatabaseContext dbContext, IAssignmentValidator assignmentValidator, ISectionAssignmentReportGenerator sectionAssignmentReportGenerator, IStudentAssignmentReportGenerator studentAssignmentReportGenerator, IUpdatedAssignmentReportGenerator updatedAssignmentReportGenerator) { _dbContext = dbContext; _assignmentValidator = assignmentValidator; _sectionAssignmentReportGenerator = sectionAssignmentReportGenerator; _studentAssignmentReportGenerator = studentAssignmentReportGenerator; _updatedAssignmentReportGenerator = updatedAssignmentReportGenerator; }
/// <summary> /// Returns a new assignments service. /// </summary> private static AssignmentService GetAssignmentService( DatabaseContext context, IAssignmentValidator assignmentValidator = null, ISectionAssignmentReportGenerator sectionAssignmentReportGenerator = null, IStudentAssignmentReportGenerator studentAssignmentReportGenerator = null, IUpdatedAssignmentReportGenerator updatedAssignmentReportGenerator = null) { return(new AssignmentService ( context, assignmentValidator, sectionAssignmentReportGenerator, studentAssignmentReportGenerator, updatedAssignmentReportGenerator )); }