示例#1
0
 public DoCreateDirectory(IActivityIOPath path, IDev2CRUDOperationTO args)
 {
     _logOnProvider   = new LogonProvider();
     _fileWrapper     = new FileWrapper();
     _dirWrapper      = new DirectoryWrapper();
     _path            = path;
     _crudArguments   = args;
     ImpersonatedUser = ValidateAuthorization.RequiresAuth(_path, _logOnProvider);
     _handleOverwrite = RequiresOverwrite(_crudArguments, _path, _logOnProvider);
 }
 public DoCreateDirectory(IActivityIOPath path, IDev2CRUDOperationTO args, IDev2LogonProvider dev2LogonProvider, IFile fileWrapper, IDirectory directory, ImpersonationDelegate impersonationDelegate)
     : base(impersonationDelegate)
 {
     _logOnProvider    = dev2LogonProvider;
     _fileWrapper      = fileWrapper;
     _dirWrapper       = directory;
     _path             = path;
     _crudArguments    = args;
     _impersonatedUser = _impersonationDelegate(_path, _logOnProvider);
     _handleOverwrite  = RequiresOverwrite(_crudArguments, _path, _logOnProvider);
 }