Структура

This commit is contained in:
Mikhail Kuznetsov
2023-08-31 12:04:05 +10:00
parent db47a670c3
commit ffb95ccf41
19 changed files with 159 additions and 26 deletions

View File

@@ -0,0 +1,8 @@
namespace PARR.EsppTemplateSync.Services
{
internal interface IManager
{
Task<bool> ManageFileAsync(string path);
Task<bool> ManageStringAsync(string str);
}
}

View File

@@ -2,6 +2,7 @@
{
internal interface IParserService
{
Task<bool> ParseAsync(string path);
Task<bool> ParseStringAsync(string str);
}
}

View 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();
}
}
}

View File

@@ -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: