public void Setup()
        {
            _logger           = A.Fake <ILogger>();
            _primaryStatsRepo = A.Fake <IPrimaryStatsRepo>();
            _svcAutoMapper    = A.Fake <ISvcAutoMapper>();

            _primaryStatsService = new PrimaryStatsService(_logger, _primaryStatsRepo, _svcAutoMapper);
        }
Пример #2
0
 public SkillsService(ILogger logger, ISkillsRepo skillsRepo, ISvcAutoMapper svcAutoMapper, ISkillTotalCalculator skillTotalCalculator, IPrimaryStatsService primaryStatsService)
 {
     _logger               = logger;
     _skillsRepo           = skillsRepo;
     _svcAutoMapper        = svcAutoMapper;
     _skillTotalCalculator = skillTotalCalculator;
     _primaryStatsService  = primaryStatsService;
     _primaryStatsService.PrimaryStatsUpdated += PrimaryStatsServiceOnPrimaryStatsUpdated;
 }
Пример #3
0
        public void Setup()
        {
            _logger               = A.Fake <ILogger>();
            _skillsRepo           = A.Fake <ISkillsRepo>();
            _svcAutoMapper        = A.Fake <ISvcAutoMapper>();
            _skillTotalCalculator = A.Fake <ISkillTotalCalculator>();
            _primaryStatsService  = A.Fake <IPrimaryStatsService>();

            _skillsService = new SkillsService(_logger, _skillsRepo, _svcAutoMapper, _skillTotalCalculator, _primaryStatsService);
        }
Пример #4
0
 public PrimaryStatsService(ILogger logger, IPrimaryStatsRepo primaryStatsRepo, ISvcAutoMapper svcAutoMapper)
 {
     _logger           = logger;
     _primaryStatsRepo = primaryStatsRepo;
     _svcAutoMapper    = svcAutoMapper;
 }