protected void OnPolicyChanged() { IncludedPaths.Clear(); foreach (var vm in Policy.IncludedPaths.Select(ip => new IncludedPathViewModel(ip))) { IncludedPaths.Add(vm); } ExcludedPaths.Clear(); foreach (var vm in Policy.ExcludedPaths.Select(ep => new ExcludedPathViewModel(ep))) { ExcludedPaths.Add(vm); } if (_isCreating) { IsChanged = false; } }
public MockEnvironment Exclude(Regex path) { ExcludedPaths.Add(path); return(this); }