SirenOfShame.Lib.Watcher.RulesEngine.CacheBuildStatuses C# (CSharp) Method

CacheBuildStatuses() private method

We cache the build statuses primarily so we can tell the rules engine whether a build changed from Broken->InProgress->Working or Broken->InProgress, etc
private CacheBuildStatuses ( IEnumerable changedBuildStatuses ) : void
changedBuildStatuses IEnumerable
return void
        private void CacheBuildStatuses(IEnumerable<BuildStatus> changedBuildStatuses)
        {
            foreach (var changedBuildStatus in changedBuildStatuses)
            {
                SetValue(changedBuildStatus, PreviousBuildStatus);
                if (changedBuildStatus.IsWorkingOrBroken())
                {
                    SetValue(changedBuildStatus, PreviousWorkingOrBrokenBuildStatus);
                }
            }
        }