Example #1
0
 public ShamWowEngine Create(object unScrubbedData, ScrubMode mode)
 {
     if (unScrubbedData != null)
     {
         return(_ctorCallerMode(unScrubbedData, mode));
     }
     else
     {
         return(null);
     }
 }
Example #2
0
        private ShamWowEngine(object dirtyDataInstance, ScrubMode mode, Dictionary <string, object> stateValues)
        {
            if (dirtyDataInstance == null)
            {
                throw new NullReferenceException("Data instance cannot be Null");
            }

            //Sets all the intial information
            _type         = dirtyDataInstance.GetType();
            _dataInstance = dirtyDataInstance;
            _manifest     = new DocumentManifest();
            _mode         = mode;
            _router       = new Router(_type, _dataInstance, stateValues);
        }