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

            LessonXTeacher entity = new LessonXTeacher();

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

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

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

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

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

            await repository.Update(record);

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

            modifiedRecord.Should().NotBeNull();
        }