public void UpdateTest() { var test = startlistDao.FindByIds(6, 2, 1); test.StartPos = 66; startlistDao.Update(test); Assert.True(startlistDao.FindByIds(6, 2, 1).StartPos == 66); }
public async Task <bool> UpdateStartListMemberStartPosition(int raceId, int skierId, int runNo, int startPosition) { return(await Task.Run(() => { var startlistAdo = new AdoStartListDao(connectionFactory); var race = new Race { Id = raceId }; var startList = new StartListMember { Race = race, SkierId = skierId, RunNo = runNo, StartPos = startPosition }; var result = startlistAdo.Update(startList); return result; })); }