public void Init() { economicGroupRepository = Substitute.For <IEconomicGroupRepository>(); var mapper = new MapperConfiguration(x => x.AddProfile(new MappingProfile())).CreateMapper(); log = Substitute.For <ILog>(); cache = Substitute.For <ICacheService>(); economicGroupService = new EconomicGroupService(economicGroupRepository, mapper, log, cache); }
/// <summary> /// /// </summary> /// <param name="economicGroupService"></param> /// <param name="log"></param> /// <param name="tokenHelper"></param> public EconomicGroupController(IEconomicGroupService economicGroupService, ILog log, ITokenHelper tokenHelper) { this.economicGroupService = economicGroupService; this.log = log; this.tokenHelper = tokenHelper; }