Example #1
0
 public ProfileCustomModel GetById(int Id)
 {
     using (objDAL = new ProfileRepo())
     {
         return(objDAL.GetById(Id));
     }
 }
Example #2
0
 public AuthenticationService(IProfileRepo profileRepo, IHashedAdapter hashedAdapter, IOtpService otpService, INotifyAdapter notifyAdapter)
 {
     _profileRepo   = profileRepo;
     _hashedAdapter = hashedAdapter;
     _otpService    = otpService;
     _notifyAdapter = notifyAdapter;
 }
Example #3
0
 public FriendsController(UserManager <IdentityUser> userManager, IRelationshipRepo relationshipRepo, IUserRepo userRepo, IHubContext <ChatHub> hubContext, IProfileRepo profileRepo)
 {
     _userManager      = userManager;
     _relationshipRepo = relationshipRepo;
     _userRepo         = userRepo;
     _hubContext       = hubContext;
     _profileRepo      = profileRepo;
 }
Example #4
0
 public RegisterModel(ILogger <RegisterModel> logger,
                      IAccountRepo accountRepo,
                      IProfileRepo profileRepo)
 {
     _logger      = logger;
     _accountRepo = accountRepo;
     _profileRepo = profileRepo;
 }
Example #5
0
 public SignInService(IAccountRepo accountRepo,
                      IRoleRepo roleRepo,
                      IProfileRepo profileRepo,
                      ILogger <SignInService> logger)
 {
     _accountRepo = accountRepo;
     _roleRepo    = roleRepo;
     _profileRepo = profileRepo;
     _logger      = logger;
 }
Example #6
0
 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;
 }
Example #8
0
 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;
        }
Example #10
0
        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;
 }
Example #12
0
 public ProfileController(IProfileRepo profileRepo, IUserRepo userRepo, IRelationshipRepo relationshipRepo)
 {
     _profileRepo      = profileRepo;
     _userRepo         = userRepo;
     _relationshipRepo = relationshipRepo;
 }
 public ProfileController(IProfileRepo <Profile> repo)
 {
     _repo = repo;
 }
Example #14
0
 public ProfileService()
 {
     this._repository = new ProfileRepo();
 }
 public HomeController(IProductRepo prepo, IProfileRepo urepo)
 {
     this.prepo = prepo;
     this.urepo = urepo;
 }
Example #16
0
 public ProfileService(IProfileRepo profileRepo)
 {
     _repository = profileRepo;
 }
Example #17
0
 public ProfileRepo(IProfileRepo _profile)
 {
     profile = _profile;
 }