Skip to content

Commit

Permalink
Add IPath, Directory and File.
Browse files Browse the repository at this point in the history
  • Loading branch information
eminencegrs committed Feb 2, 2024
1 parent f44e167 commit 89433ce
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 8 deletions.
14 changes: 14 additions & 0 deletions Creational/DesignPatterns.AbstractFactory/DataLakeStorage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace DesignPatterns.AbstractFactory;

public class DataLakeStorage : IStorage
{
public Task<IPath> CreateDirectory(string name)
{
throw new NotImplementedException();
}

public Task<IPath> CreateFile(string name)
{
throw new NotImplementedException();
}
}
5 changes: 5 additions & 0 deletions Creational/DesignPatterns.AbstractFactory/Directory.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace DesignPatterns.AbstractFactory;

public class Directory : IPath
{
}
5 changes: 5 additions & 0 deletions Creational/DesignPatterns.AbstractFactory/File.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace DesignPatterns.AbstractFactory;

public class File : IPath
{
}
5 changes: 5 additions & 0 deletions Creational/DesignPatterns.AbstractFactory/IPath.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace DesignPatterns.AbstractFactory;

public interface IPath
{
}
10 changes: 2 additions & 8 deletions Creational/DesignPatterns.AbstractFactory/IStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ namespace DesignPatterns.AbstractFactory;

public interface IStorage
{
}

public class Disk : IStorage
{
}

public class DataLakeStorage : IStorage
{
Task<IPath> CreateDirectory(string name);
Task<IPath> CreateFile(string name);
}
14 changes: 14 additions & 0 deletions Creational/DesignPatterns.AbstractFactory/LocalStorage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace DesignPatterns.AbstractFactory;

public class LocalStorage : IStorage
{
public Task<IPath> CreateDirectory(string name)
{
throw new NotImplementedException();
}

public Task<IPath> CreateFile(string name)
{
throw new NotImplementedException();
}
}

0 comments on commit 89433ce

Please sign in to comment.