private void People_Click(object sender, EventArgs e) { var context = new RSMDataModelDataContext(); var s2 = context.ExternalSystems.FirstOrDefault(x => x.Id == ExternalSystems.S2In.Id); var factory = new StageFactory(context); var person = factory.createPerson("John", "Doe", middleName: null, id: null, isAdmin: false, isLockedOut: false, username: null, password: null, credentials: null, nickname: null, externalId: "John Doe", system: s2, action: EntityAction.InsertAndSubmit); var person2 = factory.createPerson("Brayton", "Rider", middleName: null, id: null, isAdmin: true, isLockedOut: false, username: "******", password: "******", credentials: null, nickname: null, externalId: "Brayton Rider", system: s2, action: EntityAction.InsertAndSubmit); var person3 = factory.createPerson("Janet", "Smith", middleName: null, id: null, isAdmin: true, isLockedOut: false, username: "******", password: "******", credentials: null, nickname: null, externalId: "Smith, Jane", system: s2, action: EntityAction.InsertAndSubmit); var person4 = factory.createPerson("Bill", "Nye", middleName: null, id: null, isAdmin: false, isLockedOut: false, username: null, password: null, credentials: null, nickname: null, externalId: "The Science Guy", system: s2, action: EntityAction.InsertAndSubmit); }