コード例 #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public ClassroomService(
     DatabaseContext dbContext,
     IClassroomArchiver classroomArchiver)
 {
     _dbContext         = dbContext;
     _classroomArchiver = classroomArchiver;
 }
コード例 #2
0
 /// <summary>
 /// Returns a new ClassroomService object.
 /// </summary>
 private ClassroomService GetClassroomService(
     DatabaseContext dbContext,
     IClassroomArchiver archiver = null)
 {
     return(new ClassroomService(dbContext, archiver));
 }