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

            DeploymentHistory entity = new DeploymentHistory();

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

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

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

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

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

            await repository.Update(record);

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

            modifiedRecord.Should().NotBeNull();
        }