public void ListUserCreatedBusiness_AllParameters() { var internalServiceCallVo = InternalServiceCallVo.ConcreteBuilder .SetToken("0469eba2ddf84cb49eff254fe353638d") .Build(); var output = new ResultSrv <List <BusinessSrv> >(); var listUserCreatedBusinessVo = ListUserCreatedBusinessVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetBizId(new long[] { 13059 }) .SetGuildCode(new [] { "CLOTHING_GUILD" }) .SetOffset(0) .SetSize(0) .SetQuery("") .SetTags(new[] { "tst1", "tst2", "tst3" }) .SetTagTrees(new string[] { }) .SetActive(false) .SetCountry("") .SetState("") .SetCity("") .SetSsoId(0) .SetUsername("") .SetBusinessName("") .SetSheba("") .SetNationalCode("") .SetEconomicCode("") .SetEmail("") .SetCellphone("") .Build(); DealingService.ListUserCreatedBusiness(listUserCreatedBusinessVo, response => Listener.GetResult(response, out output)); Assert.False(output.HasError); }
public ResultSrv <bool> BusinessFavorite() { try { var output = new ResultSrv <bool>(); var businessFavoriteVo = BusinessFavoriteVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetBusinessId(0) .SetDisFavorite(false) .Build(); DealingService.BusinessFavorite(businessFavoriteVo, 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 <BusinessDealerSrv> AddDealer() { try { var output = new ResultSrv <BusinessDealerSrv>(); var addDealerVo = AddDealerVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetDealerBizId(0) //.SetAllProductAllow(true) .Build(); DealingService.AddDealer(addDealerVo, 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 <ServiceCallResultSrv <SearchSrv> > Search() { try { var output = new ResultSrv <ServiceCallResultSrv <SearchSrv> >(); var searchVo = SearchVo.ConcreteBuilder .SetServiceCallParameters(externalServiceCallVo) .SetLat(11111111111110) .SetLng(11111111111110) .SetTerm("حرم") .Build(); NeshanService.Search(searchVo, 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 <ServiceCallResultSrv <DirectionSrv> > Direction() { try { var output = new ResultSrv <ServiceCallResultSrv <DirectionSrv> >(); var directionVo = DirectionVo.ConcreteBuilder .SetServiceCallParameters(externalServiceCallVo) .SetOrigin(new PointD(59.6157432, 36.2880443)) .SetDestination(new PointD(36.307656, 59.530862)) //.SetWayPoints(new Point[0]) //.SetAvoidTrafficZone(false) //.SetAvoidOddEvenZone(false) //.SetAlternative(false) .Build(); NeshanService.Direction(directionVo, 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 <List <AccountBillItemSrv> > GetWalletAccountBill() { try { var output = new ResultSrv <List <AccountBillItemSrv> >(); var getWalletAccountBillVo = GetWalletAccountBillVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetOffset(0) .SetSize(10) //optional //.SetAmountFrom(0) //.SetAmountTo(0) //.SetBlock(false) //.SetCurrencyCode("") //.SetDateFrom("") //.SetDateTo("") //.SetDebtor(false) //.SetDescription("") //.SetGuildCode("") .Build(); VirtualAccountService.GetAccountBill(getWalletAccountBillVo, 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 <string> IssueCreditInvoiceAndGetHash() { try { var output = new ResultSrv <string>(); var issueCreditInvoiceAndGetHashVo = IssueCreditInvoiceAndGetHashVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetAmount(100) .SetBillNumber("") .SetRedirectUrl("") .SetUserId(0) .SetWallet("PODLAND_WALLET") .Build(); VirtualAccountService.IssueCreditInvoiceAndGetHash(issueCreditInvoiceAndGetHashVo, response => Listener.GetResult(response, out output)); var link = issueCreditInvoiceAndGetHashVo.GetLink(output.Result); 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 <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 <ServiceCallResultSrv <HotelInventoriesSrv> > GetHotelInventory() { try { var output = new ResultSrv <ServiceCallResultSrv <HotelInventoriesSrv> >(); var hotelInventoryVo = HotelInventoryVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetAuthorization(authorization) //.SetLang("") //.SetApiVersion("") //.SetCityId(0) .Build(); BookingService.GetHotelInventory(hotelInventoryVo, 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 <TagTreeCategorySrv> AddTagTreeCategory() { try { var output = new ResultSrv <TagTreeCategorySrv>(); var addTagTreeCategoryVo = AddTagTreeCategoryVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetName("nvsdfaw") .SetDesc("test") .Build(); BaseService.AddTagTreeCategory(addTagTreeCategoryVo, 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 ResultSrv <TagTreeSrv> UpdateTagTree() { try { var output = new ResultSrv <TagTreeSrv>(); var updateTagTreeVo = UpdateTagTreeVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetId(602) .SetName("naava") .SetParentId(601) //.SetEnable(false) .Build(); BaseService.UpdateTagTree(updateTagTreeVo, 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 <List <GuildSrv> > GetGuildList() { try { var output = new ResultSrv <List <GuildSrv> >(); var guildListVo = GuildListVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetOffset(0) .SetSize(10) //.SetName("") .Build(); BaseService.GetGuildList(guildListVo, 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 <List <TagTreeSrv> > GetTagTreeList() { try { var output = new ResultSrv <List <TagTreeSrv> >(); var getTagTreeListVo = GetTagTreeListVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetCategoryId(301) .SetLevelCount(2) .SetFromLevel(1) //.SetParentId(601) //.SetId(0) .Build(); BaseService.GetTagTreeList(getTagTreeListVo, 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 <UserAmountSrv> TransferByInvoice() { try { var output = new ResultSrv <UserAmountSrv>(); var transferByInvoiceVo = TransferByInvoiceVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetInvoiceId(0) .SetAmount(10) .SetDescription("") .SetGuildCode(GuildCode) .SetWallet("PODLAND_WALLET") //optional //.SetCurrencyCode("") //.SetUniqueId("") .Build(); VirtualAccountService.TransferByInvoice(transferByInvoiceVo, 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 <string> BookingCancel() { try { var output = new ResultSrv <string>(); var bookingVo = BookingVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetHotelId("") .SetReferenceId("") .SetApiVersion("") .Build(); BookingService.BookingCancel(bookingVo, 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 <List <TransferToFollowerSrv> > ListTransferByInvoice() { try { var output = new ResultSrv <List <TransferToFollowerSrv> >(); var listTransferByInvoiceVo = ListTransferByInvoiceVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetOffset(0) .SetSize(10) //optional //.SetCurrencyCode("") //.SetFromAmount(0) //.SetToAmount(0) //.SetFromDate("") //.SetToDate("") //.SetGuildCode("") //.SetInvoiceId(0) //.SetUniqueId("") .Build(); VirtualAccountService.ListTransferByInvoice(listTransferByInvoiceVo, 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 <ServiceCallResultSrv <Output <IssueInvoiceContentSrv> > > IssueInvoice() { try { var output = new ResultSrv <ServiceCallResultSrv <Output <IssueInvoiceContentSrv> > >(); var invoiceSrv = IssueInvoiceVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetBusinessId(0) .SetPrice(100) .SetRedirectUri("") .SetUserId(0) .Build(); AvandService.IssueInvoice(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 <List <CardToCardPoolSrv> > UpdateCardToCard() { try { var output = new ResultSrv <List <CardToCardPoolSrv> >(); var updateCardToCardVo = UpdateCardToCardVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetId(0) .SetCardNumber("") .Build(); VirtualAccountService.UpdateCardToCard(updateCardToCardVo, 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 <CreditInvoiceSrv> VerifyCreditInvoice() { try { var output = new ResultSrv <CreditInvoiceSrv>(); var verifyCreditInvoiceVo = VerifyCreditInvoiceVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetBillNumber("") //.SetId(0) .Build(); VirtualAccountService.VerifyCreditInvoice(verifyCreditInvoiceVo, 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 <ServiceCallResultSrv <DistanceMatrixSrv> > NoTrafficDistanceMatrix() { try { var output = new ResultSrv <ServiceCallResultSrv <DistanceMatrixSrv> >(); var distanceMatrixVo = DistanceMatrixVo.ConcreteBuilder .SetServiceCallParameters(externalServiceCallVo) .SetOrigins(new[] { new PointD(59.6157432, 36.2880443), new PointD(36.304889, 59.544595) }) .SetDestinations(new[] { new PointD(36.307656, 59.530862), new PointD(36.296865, 59.554208) }) .Build(); NeshanService.NoTrafficDistanceMatrix(distanceMatrixVo, 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 <UserAmountSrv> TransferFromOwnAccounts() { try { var output = new ResultSrv <UserAmountSrv>(); var transferFromOwnAccountsVo = TransferFromOwnAccountsVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo).SetGuildAmount(new List <GuildAmount> { GuildAmount.ConcreteBuilder.SetGuildCode(GuildCode).SetAmount(-10).Build(), GuildAmount.ConcreteBuilder.SetGuildCode("HEALTH_GUILD").SetAmount(-10).Build(), }) .SetCustomerAmount(20) //optional //.SetCurrencyCode("") //.SetDescription("") //.SetUniqueId("") //.SetWallet("") .Build(); VirtualAccountService.TransferFromOwnAccounts(transferFromOwnAccountsVo, 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 <ServiceCallResultSrv <ReverseSrv> > ReverseGeo() { try { var output = new ResultSrv <ServiceCallResultSrv <ReverseSrv> >(); var reverseGeoVo = ReverseGeoVo.ConcreteBuilder .SetServiceCallParameters(externalServiceCallVo) .SetLat(59.6157432) .SetLng(36.2880443) .Build(); NeshanService.ReverseGeo(reverseGeoVo, 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 <List <TransferCreditSrv> > TransferFromOwnAccountsList() { try { var output = new ResultSrv <List <TransferCreditSrv> >(); var transferFromOwnAccountsListVo = TransferFromOwnAccountsListVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetOffset(0) .SetSize(10) //optional //.SetFromDate("1398/07/01") //.SetToDate("1398/09/30") //.SetUniqueId("") .Build(); VirtualAccountService.TransferFromOwnAccountsList(transferFromOwnAccountsListVo, 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 <List <ServiceBillSrv> > GetPayedBillList() { try { var output = new ResultSrv <List <ServiceBillSrv> >(); var payedBillListVo = PayedBillListVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetOffset(0) .SetSize(10) //.SetBillId("") //.SetPaymentId("") .SetId(0) //.SetFromDate("") //.SetToDate("") .Build(); ToolsService.GetPayedBillList(payedBillListVo, 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 <bool> Follow() { try { var output = new ResultSrv <bool>(); var followVo = FollowVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetBusinessId(0) .SetFollow(true) .Build(); VirtualAccountService.Follow(followVo, 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 <List <CommentSrv> > CommentBusinessList() { try { var output = new ResultSrv <List <CommentSrv> >(); var commentBusinessListVo = CommentBusinessListVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetBusinessId(0) .SetSize(10) .SetOffset(0) //.SetFirstId(0) //.SetLastId(0) .Build(); DealingService.CommentBusinessList(commentBusinessListVo, 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 <List <UserSrv> > GetFollowers() { try { var output = new ResultSrv <List <UserSrv> >(); var getFollowersVo = GetFollowersVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetOffset(0) .SetSize(10) .Build(); VirtualAccountService.GetFollowers(getFollowersVo, 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 <List <BusinessDealerSrv> > BusinessDealingList() { try { var output = new ResultSrv <List <BusinessDealerSrv> >(); var businessDealingListVo = BusinessDealingListVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetDealerBizId(0) //.SetEnable(false) //.SetOffset(0) //.SetSize(0) .Build(); DealingService.BusinessDealingList(businessDealingListVo, 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 AddUserAndBusiness_RequiredParameters() { var internalServiceCallVo = InternalServiceCallVo.ConcreteBuilder .SetToken("0469eba2ddf84cb49eff254fe353638d") .Build(); var output = new ResultSrv <BusinessSrv>(); var num = new Random().Next(10000); var addUserAndBusinessVo = AddUserAndBusinessVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetUsername($"Username{num}") .SetBusinessName($"BusinessName{num}") .SetGuildCode(new[] { "TOILETRIES_GUILD", "HEALTH_GUILD" }) .SetCountry("ایران") .SetState("رضوی") .SetCity("مشهد") .SetAddress("تست") .SetDescription("تست 11") .SetAgentFirstName("test") .SetAgentLastName("test") .SetEmail("*****@*****.**") .Build(); DealingService.AddUserAndBusiness(addUserAndBusinessVo, response => Listener.GetResult(response, out output)); Assert.False(output.HasError); }