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

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

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

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

            var entity = new Badge();

            entity.SetProperties(default(int), DateTime.Parse("1/1/1988 12:00:00 AM"), "B", 1);
            await repository.Create(entity);

            var records = await context.Set <Badge>().ToListAsync();

            records.Count.Should().Be(2);
        }