public void NormalizeTrackerDate()
        {
            var filename = Path.Combine(_testFilesFolder, "TrackerDataFoo1.json");

            _trackerData = DataLoader.Load <TrackerData1>(filename);
            var actual = TrackerDataFormat1Normalizer.NormalizeTrackerData(_trackerData);

            actual.Should().BeEquivalentTo(_expectedTrackerDatas);
        }
Ejemplo n.º 2
0
        public static IEnumerable <Contracts.Models.TrackerData> NormalizeTrackerData(TrackerData1 data)
        {
            var company = new Company {
                CompanyId = data.PartnerId.ToString(), CompanyName = data.PartnerName
            };

            return(data.Trackers.Select(tracker => CreateTrakerData(company, tracker)));
        }