private void OnRunSplit(object sender, DataEventArgs <GPBikes.SPluginsBikeSplit_t> e) { var data = e.Data; var dbObj = new BikeSplit { Split = data.Split, SplitTime = data.SplitTime, BestDiff = data.BestDiff }; mLogger.BikeSplits.AddObject(dbObj); mLogger.SaveChanges(); }
public static void AssertAreEqual(BikeSplit recData, GPBikes.SPluginsBikeSplit_t data) { Assert.AreEqual(recData.Split, data.Split); Assert.AreEqual(recData.SplitTime, data.SplitTime); Assert.AreEqual(recData.BestDiff, data.BestDiff); }