public ProfileCustomModel GetById(int Id) { using (objDAL = new ProfileRepo()) { return(objDAL.GetById(Id)); } }
public AuthenticationService(IProfileRepo profileRepo, IHashedAdapter hashedAdapter, IOtpService otpService, INotifyAdapter notifyAdapter) { _profileRepo = profileRepo; _hashedAdapter = hashedAdapter; _otpService = otpService; _notifyAdapter = notifyAdapter; }
public FriendsController(UserManager <IdentityUser> userManager, IRelationshipRepo relationshipRepo, IUserRepo userRepo, IHubContext <ChatHub> hubContext, IProfileRepo profileRepo) { _userManager = userManager; _relationshipRepo = relationshipRepo; _userRepo = userRepo; _hubContext = hubContext; _profileRepo = profileRepo; }
public RegisterModel(ILogger <RegisterModel> logger, IAccountRepo accountRepo, IProfileRepo profileRepo) { _logger = logger; _accountRepo = accountRepo; _profileRepo = profileRepo; }
public SignInService(IAccountRepo accountRepo, IRoleRepo roleRepo, IProfileRepo profileRepo, ILogger <SignInService> logger) { _accountRepo = accountRepo; _roleRepo = roleRepo; _profileRepo = profileRepo; _logger = logger; }
public Edit(IAccountRepo accountRepo, IProfileRepo profileRepo, IRoleRepo roleRepo, IRoleMappingRepo roleMappingRepo) { _accountRepo = accountRepo; _profileRepo = profileRepo; _roleRepo = roleRepo; _roleMappingRepo = roleMappingRepo; }
public UserController( UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager, IFcmTokenRepo fcmTokenRepo, IProfileRepo profileRepo ) { _userManager = userManager; _signInManager = signInManager; _profileRepo = profileRepo; _fcmTokenRepo = fcmTokenRepo; }
public ConstructionElementService( IConstructionElementRepo constructionElementRepo, IMarkRepo markRepo, IConstructionRepo constructionRepo, IProfileRepo profileRepo, ISteelRepo steelRepo) { _repository = constructionElementRepo; _markRepo = markRepo; _constructionRepo = constructionRepo; _profileRepo = profileRepo; _steelRepo = steelRepo; }
public void Setup() { _profileRepo = Substitute.For <IProfileRepo>(); _hashedAdapter = Substitute.For <IHashedAdapter>(); _otpService = Substitute.For <IOtpService>(); _logAdapter = Substitute.For <ILogAdapter>(); _notifyAdapter = Substitute.For <INotifyAdapter>(); _failedCounter = Substitute.For <IFailedCounter>(); _authenticationService = new AuthenticationService(_profileRepo, _hashedAdapter, _otpService, _notifyAdapter); var failedCounterDecorator = new FailedCounterDecorator(_authenticationService, _failedCounter); var logDecorator = new LogDecorator(failedCounterDecorator, _logAdapter, _failedCounter); _authenticationService = logDecorator; }
public void InitNonExistingRepo(bool createWithUnitOfWork = false) { if (ProfileRepo == null) { if (createWithUnitOfWork) { if (UowManager == null) { UowManager = new UnitOfWorkManager(); } ProfileRepo = new ProfileRepo(UowManager.UnitOfWork); AlertRepo = new AlertRepo(UowManager.UnitOfWork); } else { ProfileRepo = new ProfileRepo(); AlertRepo = new AlertRepo(); //Console.WriteLine("OLD WAY REPO ACCOUNTMGR"); } } }
public ProfileController(IProfileRepo prorepo, ICustomerRepo crepo, IProductRepo prepo) { this.prorepo = prorepo; this.crepo = crepo; this.prepo = prepo; }
public ProfileController(IProfileRepo profileRepo, IUserRepo userRepo, IRelationshipRepo relationshipRepo) { _profileRepo = profileRepo; _userRepo = userRepo; _relationshipRepo = relationshipRepo; }
public ProfileController(IProfileRepo <Profile> repo) { _repo = repo; }
public ProfileService() { this._repository = new ProfileRepo(); }
public HomeController(IProductRepo prepo, IProfileRepo urepo) { this.prepo = prepo; this.urepo = urepo; }
public ProfileService(IProfileRepo profileRepo) { _repository = profileRepo; }
public ProfileRepo(IProfileRepo _profile) { profile = _profile; }