public void WhenEntryInJournalMatches()
        {
            var testJournal = new FitbitAnalysis_Phillip_Morris.Model.FitbitJournal();
            var testDate    = new DateTime(2017, 11, 2);
            var testEntry1  = new FitbitEntry(testDate, 500, 2.0, 310, 1, 155, new TimeSpan());

            testJournal.AddEntry(testEntry1);

            Assert.AreEqual(500, testJournal.GetEntryByDate(testDate).Steps);
        }
        public void WhenReplaceActivityCaloriesOfFirst()
        {
            var testJournal = new FitbitAnalysis_Phillip_Morris.Model.FitbitJournal();
            var testDate    = new DateTime(2017, 11, 2);
            var testEntry1  = new FitbitEntry(testDate, 500, 2.0, 310, 1, 155, new TimeSpan());
            var testEntry2  = new FitbitEntry(testDate, 500, 75.0, 310, 1, 72, new TimeSpan());

            testJournal.AddEntry(testEntry1);
            testJournal.ReplaceMatchingDateEntries(testEntry2);

            Assert.AreEqual(72, testJournal.GetEntryByDate(testDate).ActivityCalories);
        }
        public void When1EntryInMultipleMatchesHasProperDate()
        {
            var testJournal = new FitbitAnalysis_Phillip_Morris.Model.FitbitJournal();
            var testDate1   = new DateTime(2017, 11, 2);
            var testDate2   = new DateTime(2016, 10, 20);
            var testEntry1  = new FitbitEntry(testDate1, 500, 2.0, 310, 1, 155, new TimeSpan());
            var testEntry2  = new FitbitEntry(testDate2, 2000, 2.0, 310, 1, 155, new TimeSpan());

            testJournal.AddEntry(testEntry1);
            testJournal.AddEntry(testEntry2);

            Assert.AreEqual(testDate2, testJournal.GetEntryByDate(testDate2).Date);
        }