File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
33using System . IO ;
4- using System . Text ;
54
65namespace Abstract . FileSystem
76{
7+ /// <summary>
8+ /// Abstraction Layer for System.IO.Directory
9+ /// </summary>
810 public static class Directory
911 {
1012 private static IDirectoryService _directoryService ;
@@ -14,7 +16,10 @@ static Directory()
1416 _directoryService = new DirectoryService ( ) ;
1517 }
1618
17- public static IDirectoryService DirectoryServiceFactory
19+ /// <summary>
20+ /// Abstarction layer factory for <see cref="IDirectoryService"/>.
21+ /// </summary>
22+ public static IDirectoryService Factory
1823 {
1924 get
2025 {
@@ -27,6 +32,10 @@ public static IDirectoryService DirectoryServiceFactory
2732 }
2833 }
2934
35+ /// <summary>
36+ /// Setup the factory for accessing Directory
37+ /// </summary>
38+ /// <param name="service"></param>
3039 public static void Setup ( Func < IDirectoryService > service )
3140 {
3241 _directoryService = service . Invoke ( ) ;
@@ -39,7 +48,7 @@ public static void Setup(Func<IDirectoryService> service)
3948 /// <returns>An object that represents the directory at the specified path. This object is returned regardless of whether a directory at the specified path already exists.</returns>
4049 public static DirectoryInfo CreateDirectory ( string path )
4150 {
42- return DirectoryServiceFactory . CreateDirectory ( path ) ;
51+ return Factory . CreateDirectory ( path ) ;
4352 }
4453
4554 /// <summary>
Original file line number Diff line number Diff line change 55
66namespace Abstract . FileSystem
77{
8+ /// <summary>
9+ /// Abstraction Layer for System.IO.File
10+ /// </summary>
811 public static class File
912 {
1013 private static IFileService _fileService ;
@@ -15,9 +18,9 @@ static File()
1518 }
1619
1720 /// <summary>
18- /// Factory for <see cref="IFileService"/>.
21+ /// Abstarction layer factory for <see cref="IFileService"/>.
1922 /// </summary>
20- public static IFileService FileServiceFactory
23+ public static IFileService Factory
2124 {
2225 get
2326 {
@@ -30,6 +33,10 @@ public static IFileService FileServiceFactory
3033 }
3134 }
3235
36+ /// <summary>
37+ /// Setup the factory for accessing File
38+ /// </summary>
39+ /// <param name="service"></param>
3340 public static void Setup ( Func < IFileService > service )
3441 {
3542 _fileService = service . Invoke ( ) ;
Original file line number Diff line number Diff line change 55
66namespace Abstract . FileSystem
77{
8+ /// <summary>
9+ /// Abstraction Interface for System.IO.File
10+ /// </summary>
811 public interface IFileService
912 {
1013 /// <summary>
You can’t perform that action at this time.
0 commit comments