Структура
This commit is contained in:
8
PARR.EsppTemplateSync/Services/IManager.cs
Normal file
8
PARR.EsppTemplateSync/Services/IManager.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace PARR.EsppTemplateSync.Services
|
||||
{
|
||||
internal interface IManager
|
||||
{
|
||||
Task<bool> ManageFileAsync(string path);
|
||||
Task<bool> ManageStringAsync(string str);
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
{
|
||||
internal interface IParserService
|
||||
{
|
||||
Task<bool> ParseAsync(string path);
|
||||
Task<bool> ParseStringAsync(string str);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
15
PARR.EsppTemplateSync/Services/Manager.cs
Normal file
15
PARR.EsppTemplateSync/Services/Manager.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace PARR.EsppTemplateSync.Services
|
||||
{
|
||||
internal class Manager : IManager
|
||||
{
|
||||
public Task<bool> ManageFileAsync(string path)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Task<bool> ManageStringAsync(string str)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,17 @@
|
||||
{
|
||||
internal class ParserService : IParserService
|
||||
{
|
||||
public async Task<bool> ParseAsync(string path)
|
||||
public async Task<bool> ParseFileAsync(string path)
|
||||
{
|
||||
//TODO:
|
||||
|
||||
bool isSuccess = true;
|
||||
|
||||
|
||||
return isSuccess;
|
||||
}
|
||||
|
||||
public async Task<bool> ParseStringAsync(string str)
|
||||
{
|
||||
//TODO:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user