public CatmashImageControllerTest()
 {
     this.repository          = new CatmashRepository(context);
     this.pairGenerator       = new PatternedPairGenerator();
     this.pairNumTracker      = new PairNumberTracker();
     this.eloRatingCalculator = new EloRatingCalculator();
     this.constants           = new Constants();
 }
Esempio n. 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;
 }
Esempio n. 3
0
 public HomeControllerTest() : base()
 {
     repository = new CatmashRepository(context);
     logger     = new Logger <HomeController>(new LoggerFactory());
 }
Esempio n. 4
0
 public HomeController(ILogger <HomeController> logger, ICatmashRepository repository)
 {
     this.logger     = logger;
     this.repository = repository;
 }
Esempio n. 5
0
 public CatmashNotificationHub(ICatmashRepository repository) => this.repository = repository;