Esempio n. 1
0
        public void JourneyIncomplete_IsTrue_WhenTouchingOutWhileOut()
        {
            var journeyLog = new JourneyLog(new Journey());

            journeyLog.FinishExitJourney(exitStation);
            Assert.IsTrue(journeyLog.JourneyIncomplete("Out"));
        }
Esempio n. 2
0
        public void JourneyIncomplete_IsTrue_WhenTouchingInWhileIn()
        {
            var journeyLog = new JourneyLog(new Journey());

            journeyLog.StartEntryJourney(entryStation);
            Assert.IsTrue(journeyLog.JourneyIncomplete("In"));
        }
Esempio n. 3
0
 public void Put([FromBody] JourneyLog journeyLog)
 {
     _repo.Update(journeyLog);
 }
Esempio n. 4
0
 public void Post([FromBody] JourneyLog journeyLog)
 {
     _repo.Add(journeyLog);
 }