Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 public MockEnvironment Exclude(Regex path)
 {
     ExcludedPaths.Add(path);
     return(this);
 }