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

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

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

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

            Badges entity = new Badges();

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

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

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

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

            await repository.Delete(entity.Id);

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

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

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

            await repository.Update(new Badges());

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

            modifiedRecord.Should().NotBeNull();
        }