public void UpdateRegistration() { RunTestToGetAPIToken(); if (this.reg == null) { this.GetRegistrationsForEvent(); } reg.FirstName = "ModifiedFirstName"; reg.LastName = "ModifiedLastName"; ResultsOfBoolean result = this.service.UpdateRegistration(header, reg); Assert.IsTrue(result.Success); Assert.IsTrue(result.Data); ResultsOfListOfRegistration updatedReg = this.service.GetRegistration(header, reg.ID); reg = updatedReg.Data[0]; Utilities.VerifyTool.VerifyValue("ModifiedFirstName", reg.FirstName, "First Name: {0}"); Utilities.VerifyTool.VerifyValue("ModifiedLastName", reg.LastName, "Last Name: {0}"); }
public void GetRegistrationsForEvent() { RunTestToGetAPIToken(); this.PrepareEventAndRegistrations(); this.GetEventRegCount(); ResultsOfListOfRegistration result = this.service.GetRegistrationsForEvent(header, this.eventId, string.Empty, string.Empty); Assert.IsTrue(result.Success); Assert.AreEqual(this.eventRegCount, result.Data.Length); this.reg = result.Data[0]; }