コード例 #1
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;
 }
コード例 #2
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);
        }