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; }
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); }
public HomeController(ISkillsRepo skillsRepo) { _skillsRepo = skillsRepo; }