/// <summary>
 /// Initializes a new instance of the <see cref="ClassroomsController"/> class.
 /// Used for constructing when Unit Testing.
 /// </summary>
 /// <param name="db">Handle to Database interface stub.</param>
 /// <param name="st">Handle to Sky Tap interface stub.</param>
 public ClassroomsController(ILabinatorDb db, ISkyTap st)
 {
     this.db = db;
     this.st = st;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportsController"/> class for use in testing.
 /// </summary>
 /// <param name="db">The Fake database</param>
 /// <param name="st">The Fake sky tap</param>
 public ReportsController(ILabinatorDb db, ISkyTap st)
 {
     this.db = db;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CoursesController"/> class for use live.
 /// </summary>
 public CoursesController()
 {
     this.db = new LabinatorContext();
     this.st = new SkyTap();
     this.template = new Template(this.st);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ClassroomsController"/> class.
 /// Used for regular constructions. Obtains handle to Database.
 /// </summary>
 public ClassroomsController()
 {
     this.db = new LabinatorContext();
     this.st = new SkyTap();
 }
示例#5
0
 public Template(ISkyTap st)
 {
     this.st = st;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CoursesController"/> class for use in testing.
 /// </summary>
 /// <param name="db">The Fake database</param>
 /// <param name="st">The Fake SkyTap</param>
 public CoursesController(ILabinatorDb db, ISkyTap st)
 {
     this.db = db;
     this.st = st;
     this.template = new Template(this.st);
 }
示例#7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Vm"/> class.
 /// </summary>
 /// <param name="st">The st.</param>
 public Vm(ISkyTap st)
 {
     this.st = st;
 }
示例#8
0
 public Template()
 {
     st = new SkyTap();
 }
示例#9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Vm"/> class.
 /// </summary>
 public Vm()
 {
     st = new SkyTap();
 }
示例#10
0
 public Project(ISkyTap st)
 {
     this.st = st;
     id = null;
 }
示例#11
0
 public Project()
 {
     st = new SkyTap();
     id = null;
 }
示例#12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Configuration"/> class.
 /// </summary>
 /// Used when Unit Testing
 /// <param name="st">The handle to the fake Sky Tap</param>
 public Configuration(ISkyTap st)
 {
     this.st = st;
 }
示例#13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Configuration"/> class.
 /// </summary>
 /// Used in production.
 public Configuration()
 {
     this.st = new SkyTap();
 }