Beispiel #1
0
        public void BackupWorking_Success()
        {
            for (var i = 0; i <= 1000; i++)
            {
                _clock.AddHours(12);
                _job.CreateBackup();

                var backups = _client.Get().GroupBy(x => x.GetGeneration(_clock.Now));
                foreach (var backup in backups)
                {
                    backup.Count().Should().BeLessOrEqualTo(backup.Key == BackupGeneration.Third ? 1 : 4);
                }
            }
        }