public void RequireStandard(Standard standard) { if (standard.IsNullOrDefault()) { throw new ArgumentNullException(nameof(standard)); } Requirements.Add(new Requirement(this, standard)); }
public void NoLongerRequireStandard(Standard standard) { if (standard.IsNullOrDefault()) { throw new ArgumentNullException(nameof(standard)); } foreach (var requirement in Requirements.Where(r => r.Standard == standard)) { Requirements.Remove(requirement); } }
public void SwapStandards(Standard old, Standard fresh) { if (old.IsNullOrDefault()) { throw new ArgumentNullException(nameof(old)); } if (fresh.IsNullOrDefault()) { throw new ArgumentNullException(nameof(fresh)); } NoLongerRequireStandard(old); RequireStandard(fresh); }