private void OnRunLap(object sender, DataEventArgs <GPBikes.SPluginsBikeLap_t> e) { var data = e.Data; var dbObj = new BikeLap { LapTime = data.LapTime, Best = data.Best, LapNum = data.LapNum }; mLogger.BikeLaps.AddObject(dbObj); mLogger.SaveChanges(); }
public static void AssertAreEqual(BikeLap recData, GPBikes.SPluginsBikeLap_t data) { Assert.AreEqual(recData.LapTime, data.LapTime); Assert.AreEqual(recData.Best, data.Best); Assert.AreEqual(recData.LapNum, data.LapNum); }