/// <summary> /// Initializes a new instance of the <see cref="EconomicGroupService"/> class. /// </summary> /// <param name="economicGroupRepository">The economic group repository.</param> /// <param name="mapper">The mapper.</param> /// <param name="log">The log.</param> /// <param name="cache">The cache.</param> public EconomicGroupService(IEconomicGroupRepository economicGroupRepository, IMapper mapper, ILog log, ICacheService cache) : base(economicGroupRepository, log, mapper) { this.economicGroupRepository = economicGroupRepository; this.mapper = mapper; this.log = log; this.cache = cache; }
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); }