public ServiceResponse Add(Contracts.Models.TrackerDataFormat2.TrackerData2 trackerData2)
        {
            var normalizedTrackerData = TrackerDataFormat2Normalizer.NormalizeTrackerData(trackerData2);

            _trakerRepository.Add(normalizedTrackerData);
            return(ServiceResponse.CreateSucceed());
        }
Esempio n. 2
0
        public void NormalizeTrackerDate()
        {
            var filename = Path.Combine(_testFilesFolder, "TrackerDataFoo2.json");

            _trackerData = DataLoader.Load <TrackerData2>(filename);
            var actual = TrackerDataFormat2Normalizer.NormalizeTrackerData(_trackerData);

            actual.Should().BeEquivalentTo(_expectedTrackerDatas);
        }