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

            var entity = new LessonXTeacher();
            await repository.Create(entity);

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

            record.Should().NotBeNull();
        }
        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 Delete()
        {
            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();

            await repository.Delete(entity.Id);

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

            modifiedRecord.Should().BeNull();
        }
        public async void Update_Entity_Is_Not_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();

            await repository.Update(new LessonXTeacher());

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

            modifiedRecord.Should().NotBeNull();
        }