예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DbLogic"/> class.
 /// Sets the intial values of the properties.
 /// </summary>
 /// <param name="model">Initial GameModel.</param>
 /// <param name="drillRepo">Initial DrillRepository.</param>
 /// <param name="brickRepo">Initial BrickRepository.</param>
 /// <param name="connRepo">Initial ConnRepository.</param>
 public DbLogic(GameModel model, IDrillRepository drillRepo, IBrickRepository brickRepo, IConnRepository connRepo)
 {
     this.gameModel = model;
     this.drillRepo = drillRepo;
     this.brickRepo = brickRepo;
     this.connRepo  = connRepo;
 }
예제 #2
0
 public BrickController(IBrickRepository _repo)
 {
     BrickRepository = _repo;
 }