/// <summary>
 /// Initializes a new <see cref="VirtualEnvironment"/> which can be used to redirect <see cref="FileRequest"/>s to.
 /// </summary>
 /// <param name="rootDirectory"></param>
 public VirtualEnvironment(string rootDirectory)
 {
   if (rootDirectory == null)
     throw new ArgumentNullException("rootDirectory");
   rootDirectory = !Path.IsPathRooted(rootDirectory)
                     ? Path.GetFullPath(rootDirectory)
                     : rootDirectory;
   _root = rootDirectory.ToLowerInvariant();
   _redirector = new FileSystemRedirector();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new <see cref="VirtualEnvironment"/> which can be used to redirect <see cref="FileRequest"/>s to.
 /// </summary>
 /// <param name="rootDirectory"></param>
 public VirtualEnvironment(string rootDirectory)
 {
     if (rootDirectory == null)
     {
         throw new ArgumentNullException("rootDirectory");
     }
     rootDirectory = !Path.IsPathRooted(rootDirectory)
                 ? Path.GetFullPath(rootDirectory)
                 : rootDirectory;
     _root       = rootDirectory.ToLowerInvariant();
     _redirector = new FileSystemRedirector();
 }