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

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

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

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

            LessonStatus entity = new LessonStatus();

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

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

            record.Should().NotBeNull();
        }
        public async void Delete()
        {
            Mock <ILogger <LessonStatusRepository> > loggerMoc = LessonStatusRepositoryMoc.GetLoggerMoc();
            ApplicationDbContext context = LessonStatusRepositoryMoc.GetContext();
            var          repository      = new LessonStatusRepository(loggerMoc.Object, context);
            LessonStatus entity          = new LessonStatus();

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

            await repository.Delete(entity.Id);

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

            modifiedRecord.Should().BeNull();
        }
        public async void Update_Entity_Is_Not_Tracked()
        {
            Mock <ILogger <LessonStatusRepository> > loggerMoc = LessonStatusRepositoryMoc.GetLoggerMoc();
            ApplicationDbContext context = LessonStatusRepositoryMoc.GetContext();
            var          repository      = new LessonStatusRepository(loggerMoc.Object, context);
            LessonStatus entity          = new LessonStatus();

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

            await repository.Update(new LessonStatus());

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

            modifiedRecord.Should().NotBeNull();
        }