public UnitTestSample() { myUsers = new List <User>() { new User { Level = 8, Age = 20 }, new User { Level = 8, Age = 30 }, new User { Level = 11, Age = 40 }, new User { Level = 13, Age = 50 }, new User { Level = 20, Age = 60 } }; this.dalRepository = Substitute.For <IDalRepository>(); stService = new AgeStcService(); stService.DalRepository = this.dalRepository; }
public AuthenticationService(IJwtService jwtService, IDalRepository <Account> dal, IDalRepository <AccountLoginHistory> loginHistory, WebHelper helper, IUserCachingService userCachingService, IDalRepository <Rule> ruleDal) { _dal = dal; _loginHistory = loginHistory; _helper = helper; _userCachingService = userCachingService; _ruleDal = ruleDal; _jwtService = jwtService; }
public UnitTestSample() { myUsers = new List<User>() { new User {Level=8, Age=20 }, new User {Level=8, Age=30 }, new User {Level=11, Age=40 }, new User {Level=13, Age=50 }, new User {Level=20, Age=60 } }; this.dalRepository = Substitute.For<IDalRepository>(); stService = new AgeStcService(); stService.DalRepository = this.dalRepository; }
protected ServiceRepository() { _mapper = ServiceTool.ServiceProvider.GetService <IMapper>(); _dal = ServiceTool.ServiceProvider.GetService <IDalRepository <TEntity> >(); }
public AccountService(IDalRepository <Account> dal, IMapper mapper, IDalRepository <AccountLoginHistory> historyDal) { _dal = dal; _mapper = mapper; _historyDal = historyDal; }
/// <summary> /// Constructor /// </summary> /// <param name="logManager">Log manager</param> /// <param name="fileRepository">File repository</param> public DeviceService(ILogManager logManager, IFileRepository fileRepository, IDalRepository dalRepository) { Log = logManager.GetLog(classCode); fileRepo = fileRepository; dalRepo = dalRepository; }
public RuleService(IDalRepository <Rule> dal) => _dal = dal;