public async void Get()
        {
            Mock <ILogger <LinkTypesRepository> > loggerMoc = LinkTypesRepositoryMoc.GetLoggerMoc();
            ApplicationDbContext context = LinkTypesRepositoryMoc.GetContext();
            var repository = new LinkTypesRepository(loggerMoc.Object, context);

            LinkTypes entity = new LinkTypes();

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

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

            record.Should().NotBeNull();
        }
        public async void Update_Entity_Is_Tracked()
        {
            Mock <ILogger <LinkTypesRepository> > loggerMoc = LinkTypesRepositoryMoc.GetLoggerMoc();
            ApplicationDbContext context = LinkTypesRepositoryMoc.GetContext();
            var       repository         = new LinkTypesRepository(loggerMoc.Object, context);
            LinkTypes entity             = new LinkTypes();

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

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

            await repository.Update(record);

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

            modifiedRecord.Should().NotBeNull();
        }