public void EditParticipant() { string name = "test"; NewModel(); _model.EditParticipant(0, name); Assert.AreEqual(name, _context.Participants[0].Name); Assert.IsTrue(_context.ParticipantsChanged); }
public void NewParticipantsModel() { NewModel(); SetupModel setupModel = _model.NewSetupModel(); setupModel.Initialize(); ParticipantsModel participantsModel = _model.NewParticipantsModel(); participantsModel.Initialize(); _context.ParticipantsChanged = false; participantsModel.EditParticipant(0, "test"); Assert.AreEqual("test", _context.Participants[0].Name); Assert.IsTrue(_context.ParticipantsChanged); }
private void OnParticipantNameChanged(object sender, EventArgs e) { ParticipantRow row = (ParticipantRow)sender; _model.EditParticipant(row.ID, row.Name); }