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

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

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

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

            SpaceFeature entity = new SpaceFeature();

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

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

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

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

            await repository.Delete(entity.Id);

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

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

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

            await repository.Update(new SpaceFeature());

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

            modifiedRecord.Should().NotBeNull();
        }