public async void Get()
        {
            Mock <ILogger <AirTransportRepository> > loggerMoc = AirTransportRepositoryMoc.GetLoggerMoc();
            ApplicationDbContext context = AirTransportRepositoryMoc.GetContext();
            var repository = new AirTransportRepository(loggerMoc.Object, context);

            AirTransport entity = new AirTransport();

            context.Set <AirTransport>().Add(entity);
            await context.SaveChangesAsync();

            var record = await repository.Get(entity.AirlineId);

            record.Should().NotBeNull();
        }
        public async void Get()
        {
            Mock <ILogger <AirTransportRepository> > loggerMoc = AirTransportRepositoryMoc.GetLoggerMoc();
            ApplicationDbContext context = AirTransportRepositoryMoc.GetContext();
            var repository = new AirTransportRepository(loggerMoc.Object, context);

            AirTransport entity = new AirTransport();

            entity.SetProperties(default(int), 2, "B", 1, DateTime.Parse("1/1/1988 12:00:00 AM"), 2, DateTime.Parse("1/1/1988 12:00:00 AM"));
            context.Set <AirTransport>().Add(entity);
            await context.SaveChangesAsync();

            var record = await repository.Get(entity.Id);

            record.Should().NotBeNull();
        }
        public async void Update_Entity_Is_Tracked()
        {
            Mock <ILogger <AirTransportRepository> > loggerMoc = AirTransportRepositoryMoc.GetLoggerMoc();
            ApplicationDbContext context = AirTransportRepositoryMoc.GetContext();
            var          repository      = new AirTransportRepository(loggerMoc.Object, context);
            AirTransport entity          = new AirTransport();

            context.Set <AirTransport>().Add(entity);
            await context.SaveChangesAsync();

            var record = await repository.Get(entity.AirlineId);

            await repository.Update(record);

            var modifiedRecord = context.Set <AirTransport>().FirstOrDefaultAsync();

            modifiedRecord.Should().NotBeNull();
        }