Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
 /// <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
            ));
 }