public ResultSrv <List <AddressSrv> > GetListAddress() { try { var output = new ResultSrv <List <AddressSrv> >(); var invoiceSrv = ListAddressVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetOffset(0) //.SetSize("") .Build(); UserOperationService.GetListAddress(invoiceSrv, response => Listener.GetResult(response, out output)); return(output); } catch (PodException podException) { Console.WriteLine( $"-- {podException.Code}-an error has occured : {Environment.NewLine}{podException.Message}"); throw; } catch (Exception exception) { Console.WriteLine(exception.Message); throw; } }
public ResultSrv <CustomerProfileSrv> ConfirmEditProfile() { try { var output = new ResultSrv <CustomerProfileSrv>(); var confirmEditProfileVo = ConfirmEditProfileVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetCellphoneNumber("") .SetCode(0) .Build(); UserOperationService.ConfirmEditProfile(confirmEditProfileVo, response => Listener.GetResult(response, out output)); return(output); } catch (PodException podException) { Console.WriteLine( $"-- {podException.Code}-an error has occured : {Environment.NewLine}{podException.Message}"); throw; } catch (Exception exception) { Console.WriteLine(exception.Message); throw; } }
public void GetUserProfile_RequiredParameters() { var internalServiceCallVo = InternalServiceCallVo.ConcreteBuilder .SetToken("0469eba2ddf84cb49eff254fe353638d") .Build(); var output = new ResultSrv <CustomerProfileSrv>(); var userProfileVo = UserProfileVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .Build(); UserOperationService.GetUserProfile(userProfileVo, response => Listener.GetResult(response, out output)); Assert.False(output.HasError); }
public void GetListAddress_RequiredParameters() { var internalServiceCallVo = InternalServiceCallVo.ConcreteBuilder .SetToken("0469eba2ddf84cb49eff254fe353638d") .Build(); var output = new ResultSrv <List <AddressSrv> >(); var invoiceSrv = ListAddressVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetOffset(0) .Build(); UserOperationService.GetListAddress(invoiceSrv, response => Listener.GetResult(response, out output)); Assert.False(output.HasError); }
public void GetUserProfile_AllParameters() { var internalServiceCallVo = InternalServiceCallVo.ConcreteBuilder .SetToken("0469eba2ddf84cb49eff254fe353638d") .Build(); var output = new ResultSrv <CustomerProfileSrv>(); var userProfileVo = UserProfileVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetClientId("6305557f7fcb4988abae4e404d3e6e1d") .SetClientSecret("a8ba06d0") .Build(); UserOperationService.GetUserProfile(userProfileVo, response => Listener.GetResult(response, out output)); Assert.False(output.HasError); }
public void EditProfileWithConfirmation_RequiredParameters() { var internalServiceCallVo = InternalServiceCallVo.ConcreteBuilder .SetToken("0469eba2ddf84cb49eff254fe353638d") .Build(); var output = new ResultSrv <CustomerProfileSrv>(); var editProfileWithConfirmationVo = EditProfileWithConfirmationVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetNickName("NadiaAv") .Build(); UserOperationService.EditProfileWithConfirmation(editProfileWithConfirmationVo, response => Listener.GetResult(response, out output)); Assert.False(output.HasError); }
public ResultSrv <CustomerProfileSrv> EditProfileWithConfirmation() { try { var output = new ResultSrv <CustomerProfileSrv>(); var editProfileWithConfirmationVo = EditProfileWithConfirmationVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetNickName("") .SetFirstName("") //.SetLastName("{Put your LastName}") //.SetAddress("{Put your Address}") //.SetPhoneNumber("{Put your PhoneNumber}") //.SetCellphoneNumber("{Put your CellphoneNumber}") //.SetNationalCode("{Put your NationalCode}") //.SetGender(EditProfileWithConfirmationVo.GenderType.WOMAN_GENDER) //.SetBirthDate("{Put your BirthDate}") //.SetCountry("{Put your Country}") //.SetState("{Put your last name}") //.SetCity("{Put your City}") //.SetPostalCode("{Put your PostalCode}") //.SetSheba("{Put your Sheba}") //.SetProfileImage("{Put your ProfileImage}") //.SetClientId("{Put your ClientId}") //.SetClientSecret("{Put your ClientSecret}") //.SetClientMetadata("{Put your ClientMetadata}") //.SetBirthState("{Put your BirthState}") //.SetIdentificationNumber("{Put your IdentificationNumber}") //.SetFatherName("{Put your FatherName}") //.SetEmail("{Put your Email}") .Build(); UserOperationService.EditProfileWithConfirmation(editProfileWithConfirmationVo, response => Listener.GetResult(response, out output)); return(output); } catch (PodException podException) { Console.WriteLine( $"-- {podException.Code}-an error has occured : {Environment.NewLine}{podException.Message}"); throw; } catch (Exception exception) { Console.WriteLine(exception.Message); throw; } }
public void EditProfileWithConfirmation_AllParameters() { var internalServiceCallVo = InternalServiceCallVo.ConcreteBuilder .SetToken("0469eba2ddf84cb49eff254fe353638d") .Build(); var output = new ResultSrv <CustomerProfileSrv>(); var editProfileWithConfirmationVo = EditProfileWithConfirmationVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetNickName("NadiaAv") .SetFirstName("tst") .SetLastName("tst") .SetAddress("tst") .SetPhoneNumber("09153871887") .SetCellphoneNumber("0518848841") .SetNationalCode("1111771111") .SetGender(GenderType.WOMAN_GENDER) .SetBirthDate("1363/01/27") .SetCountry("ایران") .SetState("خراسان رضوی") .SetCity("مشهد") .SetPostalCode("9698146968") .SetSheba("980570100680013557234101") .SetProfileImage("https://core.pod.ir:443/nzh/image/?imageId=110531&width=909&height=909&hashCode=16b11e5cf3c-0.42178732891944504") .SetClientId("6305557f7fcb4988abae4e404d3e6e1d") .SetClientSecret("a8ba06d0") .SetClientMetadata("{test}") .SetBirthState("خرسان رضوی") .SetIdentificationNumber("639") .SetFatherName("پدر") .SetEmail("*****@*****.**") .Build(); UserOperationService.EditProfileWithConfirmation(editProfileWithConfirmationVo, response => Listener.GetResult(response, out output)); Assert.False(output.HasError); }