Beispiel #1
0
        public async Task ClubServiceAircrafTest()
        {
            ImportDataTest import = new ImportDataTest();

            import.InitContext();
            try
            {
                _context = import._context;
                cr       = new ClubRepository(_context);
                ClubService            clubService = new ClubService(cr);
                ICollection <Aircraft> aircraft    = await clubService.GetClubAircraft("BAZ");

                foreach (var ar in aircraft)
                {
                    System.Diagnostics.Debug.WriteLine(ar.ToString());
                }
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.WriteLine(ex.Message);
            }
        }