Esempio n. 1
0
        public RegisterRepository(IMasterRepository masterRepository, IRegisterService service, IDynamixService dynamix = null,
                                  IDynamixReturnService <List <DynamixContact> > dynamixReturn           = null,
                                  IDynamixReturnService <DynamixPolicy> dynasmicPolicyReturn             = null,
                                  IDynamixReturnService <DynamixCommunity> dynamixCommunityReturnService = null,
                                  IDynamixReturnService <GetUserReturnModel> dynamixUserReturnService    = null)
            : base(masterRepository)
        {
            _Service                       = service;
            _DynamixService                = dynamix;
            _DynamixReturnService          = dynamixReturn;
            _DynamixPolicyReturnService    = dynasmicPolicyReturn;
            _DynamixCommunityReturnService = dynamixCommunityReturnService;
            _DynamixUserReturnService      = dynamixUserReturnService;
            _PlatformBonsai                = new PlatformBonsai();
            BlobStorageRepository          = new AzureBlobStorageRepository(_MasterRepo);
            var platform = new PlatformRepository <RegisterViewModel>(masterRepository, _PlatformBonsai)
            {
                OnError = (errs) =>
                {
                    OnError?.Invoke(errs);
                }
            };

            _SelfieRepo = new SelfieRepository(_MasterRepo);
        }
 public WelcomeRepository(IMasterRepository masterRepository,
                          IRegisterRepository registerRepo,
                          ISelfieRepository selfieRepo)
     : base(masterRepository)
 {
     _RegisterRepo = registerRepo;
     _SelfieRepo   = selfieRepo;
 }
 public override void SetRepositories()
 {
     _Reposetory = new EditProfileRepository <EditProfileViewModel>(_MasterRepo, new DynamixService((U, P, A) =>
                                                                                                    ExecuteQueryWithTypedParametersAndNetworkAccessAsync(U, P, A)));
     photoRepo     = new PhotoRepository(_MasterRepo);
     _RegisterRepo = new RegisterRepository(_MasterRepo, null);
     _selfieRepo   = new SelfieRepository(_MasterRepo);
 }
Esempio n. 4
0
        public override void SetRepositories()
        {
            _service = new DynamixService((U, P, A) =>
                                          ExecuteQueryWithTypedParametersAndNetworkAccessAsync(U, P, A));
            var AddTrustedSourceService = new DynamixReturnService <DynamicTrustedSourceAddReturn>((U, P, A) =>
                                                                                                   ExecuteQueryWithReturnTypeAndNetworkAccessAsync <DynamicTrustedSourceAddReturn>(U, P, A));
            var AddBeneficiaryService = new DynamixReturnService <DynamixBeneficiaryAddReturn>((U, P, A) =>
                                                                                               ExecuteQueryWithReturnTypeAndNetworkAccessAsync <DynamixBeneficiaryAddReturn>(U, P, A));

            addTrustedSourceRepo     = new AddTrustedSourceRepository(_MasterRepo, _service, AddTrustedSourceService);
            addBeneficiaryRepository = new AddBeneficiaryRepository(_MasterRepo, _service, AddBeneficiaryService);
            _selfieRepo = new SelfieRepository(_MasterRepo);
        }
Esempio n. 5
0
        public override void SetRepositories()
        {
            _RegisterService = new RegisterService((U, P, A) =>
                                                   ExecuteQueryWithTypedParametersAndNetworkAccessAsync(U, P, A));
            _DynamixService = new DynamixService((U, P, A) =>
                                                 ExecuteQueryWithTypedParametersAndNetworkAccessAsync(U, P, A));
            var _DynamixReturnService = new DynamixReturnService <List <DynamixContact> >((U, P, A) =>
                                                                                          ExecuteQueryWithReturnTypeAndNetworkAccessAsync <List <DynamixContact> >(U, P, A));
            var _DynamixPolicyReturnService = new DynamixReturnService <DynamixPolicy>((U, P, A) =>
                                                                                       ExecuteQueryWithReturnTypeAndNetworkAccessAsync <DynamixPolicy>(U, P, A));
            var _DynamixCommunityReturnService = new DynamixReturnService <DynamixCommunity>((U, P, A) =>
                                                                                             ExecuteQueryWithReturnTypeAndNetworkAccessAsync <DynamixCommunity>(U, P, A));
            var _DynamixUserReturnService = new DynamixReturnService <GetUserReturnModel>((U, P, A) =>
                                                                                          ExecuteQueryWithReturnTypeAndNetworkAccessAsync <GetUserReturnModel>(U, P, A));

            _RegisterRepo = new RegisterRepository(_MasterRepo, _RegisterService, _DynamixService, _DynamixReturnService,
                                                   _DynamixPolicyReturnService, _DynamixCommunityReturnService, _DynamixUserReturnService);
            _SelfieRepo = new SelfieRepository(_MasterRepo);
            _Reposetory = new WelcomeRepository(_MasterRepo, _RegisterRepo, _SelfieRepo);
        }
Esempio n. 6
0
 public SelfieController(ISelfieRepository selfieRepository)
 {
     this._selfieRepository = selfieRepository;
 }
Esempio n. 7
0
 public SelfieController(ISelfieRepository selfieRepository, IWeaponRepository weaponRepository)
 {
     _selfieRepository = selfieRepository;
     _weaponRepository = weaponRepository;
 }
Esempio n. 8
0
 public override void SetRepositories()
 {
     _Reposetory        = new SelfieRepository(_MasterRepo);
     InputObject.Selfie = _MasterRepo.DataSource.User.UserPicture;
 }