public async void Update_Entity_Is_Not_Tracked()
        {
            Mock <ILogger <TableRepository> > loggerMoc = TableRepositoryMoc.GetLoggerMoc();
            ApplicationDbContext context = TableRepositoryMoc.GetContext();
            var   repository             = new TableRepository(loggerMoc.Object, context);
            Table entity = new Table();

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

            await repository.Update(new Table());

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

            modifiedRecord.Should().NotBeNull();
        }
        public async void Update_Entity_Is_Not_Tracked()
        {
            Mock <ILogger <TableRepository> > loggerMoc = TableRepositoryMoc.GetLoggerMoc();
            ApplicationDbContext context = TableRepositoryMoc.GetContext();
            var   repository             = new TableRepository(loggerMoc.Object, context);
            Table entity = new Table();

            entity.SetProperties(default(int), "B");
            context.Set <Table>().Add(entity);
            await context.SaveChangesAsync();

            context.Entry(entity).State = EntityState.Detached;

            await repository.Update(entity);

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

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