public void Stuff3() { Uri serviceUri = new Uri(svcUri_Base); var service = new PersonifyData.PersonifyEntitiesBase(serviceUri); service.IgnoreMissingProperties = true; service.Credentials = new System.Net.NetworkCredential(svcLogin, svcPassword); var stuff = service.CustomerInfos.Where(x => x.LastName == "Hoiberg").ToList(); var firstOne = stuff.FirstOrDefault(); var ssoservice = new com.personifycloud.smemitst.service(); var personifyIdentifier = firstOne.MasterCustomerId + "|0"; var customer = ssoservice.SSOCustomerGet(PersonifyVendorName, PersonifyVendorPassword, personifyIdentifier); var imsService = new com.personifycloud.smemitst1.IMService(); var webRoles = imsService.IMSCustomerWebRoleGet(PersonifyVendorName, PersonifyVendorPassword, personifyIdentifier); var otherRoles = imsService.IMSCustomerRoleGet(PersonifyVendorName, PersonifyVendorPassword, personifyIdentifier); Assert.IsTrue(true); }
public void CountryStateTest1() { Uri serviceUri = new Uri(svcUri_Base); var service = new PersonifyData.PersonifyEntitiesBase(serviceUri); service.IgnoreMissingProperties = true; service.Credentials = new System.Net.NetworkCredential(svcLogin, svcPassword); var countries = service.Countries.Where(x => x.ActiveFlag == true).ToList().OrderBy(x => x.CountryCode == "USA" ? 0 : 1).ThenBy(x => x.CountryDescription).ToList(); var state = service.States.Where(x => x.ActiveFlag == true && x.CountryCodeString == "USA").ToList(); Assert.IsTrue(true); }
public void CanCall_DataService_Success() { try { Uri serviceUri = new Uri(svcUri_Base); var service = new PersonifyData.PersonifyEntitiesBase(serviceUri); service.IgnoreMissingProperties = true; service.Credentials = new System.Net.NetworkCredential(svcLogin, svcPassword); var membershipDetails1 = service.WebMembershipJoinProducts.Where(x => x.ProductId > 0L).ToList(); var membershipDetails = service.WebMembershipJoinProducts.AddQueryOption("$filter", "ProductId gt 0").ToList(); } catch (Exception ex) { System.Console.WriteLine(ex.ToString()); } }
public void Stuff2() { Uri serviceUri = new Uri(svcUri_Base); var service = new PersonifyData.PersonifyEntitiesBase(serviceUri); service.IgnoreMissingProperties = true; service.Credentials = new System.Net.NetworkCredential(svcLogin, svcPassword); var stuff = service.ApplicationCodes.Where(x => x.ActiveFlag == true && x.SubsystemString == "CUS" && x.Type == "Demographic").ToList(); var appCodesSubCodes = stuff.Select(x => new { x.Code, x.ApplicationSubcode }).Distinct().ToList(); var stuff2 = service.ApplicationSubcodes.Where(x => x.ActiveFlag == true && x.Subsystem == "CUS" && x.Type == "Demographic").ToList(); Assert.IsTrue(true); }