public AdWindowStatisticService( IMetroAdRepository <AdWindowUsageEntity> repo, IMetroAdDbFactory metroAdDbFactory) { this.repo = repo; this._dbFactory = metroAdDbFactory; }
public OrderService( IServiceProvider provider, IMetroAdRepository <OrderEntity> repo, IStringArraySerializer stringArraySerializer, IMetroAdDbFactory metroAdDbFactory, IMSRepository <UserEntity> _userRepo) : base(provider, repo) { this.stringArraySerializer = stringArraySerializer; this._dbFactory = metroAdDbFactory; this._userRepo = _userRepo; this._config = provider.ResolveConfig_(); if (int.TryParse(this._config["order_no_len"] ?? "9", out var len)) { len.Should().BeGreaterThan(5); this.OrderNoLength = len; } }