public GridViewModel GetModel(NamedGridRequest request)
        {
            var harness = _locator.GetInstance <ISmartGridHarness>(request.GridName);

            if (request.Arguments != null)
            {
                harness.RegisterArguments(request.Arguments.ToArray());
            }

            return(harness.BuildGridModel(request.Policies));
        }
 public bool Equals(NamedGridRequest other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.GridName, GridName));
 }