public CatmashImageControllerTest()
 {
     this.repository          = new CatmashRepository(context);
     this.pairGenerator       = new PatternedPairGenerator();
     this.pairNumTracker      = new PairNumberTracker();
     this.eloRatingCalculator = new EloRatingCalculator();
     this.constants           = new Constants();
 }
Beispiel #2
0
 public CatmashImageController(ICatmashRepository repository,
                               IPairGeneratorStrategy pairGenerator,
                               PairNumberTracker pairNumTracker,
                               EloRatingCalculator eloRatingCalculator,
                               Constants constants)
 {
     this.repository          = repository;
     this.pairGenerator       = pairGenerator;
     this.pairNumTracker      = pairNumTracker;
     this.eloRatingCalculator = eloRatingCalculator;
     this.constants           = constants;
 }
 public HomeControllerTest() : base()
 {
     repository = new CatmashRepository(context);
     logger     = new Logger <HomeController>(new LoggerFactory());
 }
Beispiel #4
0
 public HomeController(ILogger <HomeController> logger, ICatmashRepository repository)
 {
     this.logger     = logger;
     this.repository = repository;
 }
Beispiel #5
0
 public CatmashNotificationHub(ICatmashRepository repository) => this.repository = repository;