public void GoesTo(Station station, bool isTo)
        {
            var service = TestSchedules.CreateService();
            var clapham = service.Details.Locations[1];
            var stop    = new ResolvedServiceStop(service, clapham);

            if (isTo)
            {
                Assert.True(stop.GoesTo(station));
                Assert.NotNull(stop.FoundToStop);
            }
            else
            {
                Assert.False(stop.GoesTo(station));
                Assert.Null(stop.FoundToStop);
            }
        }
        public void GoesToWithNoAssociation()
        {
            var service = TestSchedules.CreateService();
            var clapham = service.Details.Locations[1];
            var stop    = new ResolvedServiceStop(service, clapham);

            Assert.True(stop.GoesTo(TestStations.Waterloo));
            Assert.False(stop.Association.IsIncluded);
            Assert.Equal(IncludedAssociation.NoAssociation, stop.Association);
        }
        public void GoesToOnlyIfHasPublicArrival(string activity, bool expected)
        {
            var service  = TestSchedules.CreateService();
            var surbiton = service.Details.Locations[0];
            var clapham  = service.Details.Locations[1] as ScheduleStop;

            clapham.Activities = new Activities(activity);

            var stop = new ResolvedServiceStop(service, surbiton);

            Assert.Equal(expected, stop.GoesTo(clapham.Station));
            Assert.Equal(expected, stop.FoundToStop != null);
        }