Refactor Category Service ...

- Add all HardCoded Strings in Constants ...
- Apply Resolve Constant Replacement Side Affects ...
- add Support for Service Main Provider ...
This commit is contained in:
2026-07-28 21:31:42 +03:30
parent 4e67edeb85
commit e37bad59ac
21 changed files with 1013 additions and 38 deletions
@@ -1,3 +1,4 @@
using xCategoryService.Constants;
using xCategoryService.Interfaces.Entities;
using xCategoryService.Models.Entities;
using xDataService.Configuration;
@@ -14,12 +15,12 @@ namespace xCategoryService.Providers.GraphQL
public override string GetInQueryCollectionName()
{
return "categories";
return XCategoryServiceConstants.XCategoryCollectionName;
}
public override string GetInQuerySingleName()
{
return "category";
return XCategoryServiceConstants.XCategorySingleName;
}
}
}
@@ -1,3 +1,4 @@
using xCategoryService.Constants;
using xCategoryService.Interfaces.Entities;
using xCategoryService.Models.Entities;
using xDataService.Configuration;
@@ -14,12 +15,12 @@ namespace xCategoryService.Providers.GraphQL
public override string GetInQueryCollectionName()
{
return "subCategories";
return XCategoryServiceConstants.XSubCategoryCollectionName;
}
public override string GetInQuerySingleName()
{
return "subCategory";
return XCategoryServiceConstants.XSubCategorySingleName;
}
}
}