Пример #1
0
 protected BasePath(PathFactory factory, PlatformPathTypes platformPathType, PathTypes pathType, string path,
     string[] components)
 {
     Factory = factory;
     PlatformPathType = platformPathType;
     PathType = pathType;
     Components = components;
     Path = path;
 }
Пример #2
0
 protected WinPath(PathFactory factory, PlatformPathTypes platformPathType, PathTypes pathType, string path,
     string[] components)
     : base(factory, platformPathType, pathType, path, components)
 {
     var firstComponent = components.FirstOrDefault();
     Drive = PathUtility.GetDrive(firstComponent);
 }
Пример #3
0
 public UnixRootPath(PathFactory factory, PlatformPathTypes platformPathType, PathTypes pathType, string path,
     string[] components)
 {
     throw new NotImplementedException();
 }
Пример #4
0
 public UnixDirectoryPath(PathFactory factory, PlatformPathTypes platformPathType, PathTypes pathType,
     string path, string[] components)
 {
 }
Пример #5
0
 public void Setup()
 {
     _system = new Mock<IFileSystem>();
     _factory = new PathFactory(_system.Object, new PathConfiguration());
 }
Пример #6
0
 public WinDirectoryPath(PathFactory factory, PlatformPathTypes platformPathType, PathTypes pathType, string path,
     string[] components)
     : base(factory, platformPathType, pathType, path, components)
 {
 }