public override void SetRepositories()
        {
            nIUSSDService = new NIUSSDService <NIUSSDReturnModel>((U, P, A) =>
                                                                  ExecuteQueryWithReturnTypeAndNetworkAccessAsync <NIUSSDReturnModel>(U, P, A));
            _Reposetory = new RegistrationCellphoneRepository(_MasterRepo, nIUSSDService);

            InputObject.Greeting = "Hi " + _MasterRepo.DataSource.User.FirstName +
                                   ", what is your cellphone number?";
            InputObject.CellPhoneNumber = _MasterRepo.DataSource.User.MobileNumber;
        }
Exemplo n.º 2
0
        public override void SetRepositories()
        {
            _Reposetory     = new CongratulationsRepository <CongratulationsViewModel>(_MasterRepo);
            RegisterService = new RegisterService((U, P, A) =>
                                                  ExecuteQueryWithTypedParametersAndNetworkAccessAsync(U, P, A));
            var _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 <List <DynamixPolicy> >((U, P, A) =>
                                                                                               ExecuteQueryWithReturnTypeAndNetworkAccessAsync <List <DynamixPolicy> >(U, P, A));
            var _DynamixUserReturnService = new DynamixReturnService <GetUserReturnModel>((U, P, A) =>
                                                                                          ExecuteQueryWithReturnTypeAndNetworkAccessAsync <GetUserReturnModel>(U, P, A));

            RegisterRepository = new RegisterRepository(_MasterRepo, RegisterService, _DynamixService, _DynamixReturnService,
                                                        null, null, _DynamixUserReturnService);
            nIUSSDService = new NIUSSDService <NIUSSDReturnModel>((U, P, A) =>
                                                                  ExecuteQueryWithReturnTypeAndNetworkAccessAsync <NIUSSDReturnModel>(U, P, A));
            _CellReposetory = new RegistrationCellphoneRepository(_MasterRepo, nIUSSDService);
        }
Exemplo n.º 3
0
 public RegistrationCellphoneRepository(IMasterRepository masterRepository, INIUSSDService <NIUSSDReturnModel> ussdService)
     : base(masterRepository)
 {
     _ussdService = ussdService;
 }
Exemplo n.º 4
0
 public NIUSSDRepository(IMasterRepository masterRepository, INIUSSDService <NIUSSDReturnModel> service)
     : base(masterRepository)
 {
     _Service = service;
 }