/*
         * Helper function for adding a pilot durring ACT phase of tests.
         * Aids in avoiding code copying.
         *    */
        public async Task AddForTest(Pilot pilot)
        {
            await _context.Pilots.AddAsync(pilot);

            _context.Entry(pilot).State = EntityState.Added;
            await _context.SaveChangesAsync();
        }
        public async Task AddForTest(Flight flight)
        {
            await _context.Flights.AddAsync(flight);

            _context.Entry(flight).State = EntityState.Added;
            await _context.SaveChangesAsync();
        }
        public async Task Setup()
        {
            _context = SingletonTestSetup.Instance().Get();
            route    = await _context.Routes.Where(r => r.RouteId == "VR-140").FirstOrDefaultAsync();

            pilot = new Pilot {
                Aircraft = "F-16", EmailId = "*****@*****.**", Name = "Test Pilot", Pwd = "a"
            };
            await _context.Pilots.AddAsync(pilot);

            _context.Entry(pilot).State = EntityState.Added;
            await _context.SaveChangesAsync();
        }
        public async Task AddRoute(Route r)
        {
            await _context.Routes.AddAsync(r);

            await _context.SaveChangesAsync();
        }