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

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

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

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

            Illustration entity = new Illustration();

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

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

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

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

            await repository.Delete(entity.IllustrationID);

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

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

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

            await repository.Update(new Illustration());

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

            modifiedRecord.Should().NotBeNull();
        }