public void NormalizeTrackerDate() { var filename = Path.Combine(_testFilesFolder, "TrackerDataFoo3.json"); _trackerData = DataLoader.Load <TrackerData3>(filename); var actual = TrackerDataFormat3Normalizer.NormalizeTrackerData(_trackerData); actual.Should().BeEquivalentTo(_expectedTrackerDatas); }
public static IEnumerable <Contracts.Models.TrackerData> NormalizeTrackerData(TrackerData3 data) { var company = new Company { CompanyId = data.CompanyId.ToString(), CompanyName = data.Company }; return(data.Devices.Select(device => CreateTrakerData(company, device))); }