Пример #1
0
        public void Can_Get_All_Transit_Routes()
        {
            // Given / When
            var controller = new TransitRouteController();
            var allRoutes  = controller.Get().ToList();

            // Then
            Assert.That(allRoutes, Has.Count.GreaterThan(0));
        }
Пример #2
0
        public void Can_Get_Transit_Route_By_Id()
        {
            // Given
            const int id = 1;

            // When
            var controller = new TransitRouteController();
            var route      = controller.Get(id);

            // Then
            Assert.That(route.Id, Is.EqualTo(1));
            Assert.That(route.LongName, Is.EqualTo("Caboolture Line"));
            Assert.That(route.ShortName, Is.EqualTo("CAB"));
        }