public static RideBase CreateRideData(RideDataApp rideData, string fileName) { if (rideData == RideDataApp.IpBike) { return(new IpBikeRideImporter(new CSVReader(fileName))); } throw new Exception("Unknown ride app."); }
public void TestMethod1(RideDataApp appType, string expectedClassType) { RideBase value = RideBase.CreateRideData(appType, ""); Assert.AreEqual(value.GetType().Name, expectedClassType); }