refactor and add using constants instead of hard coded strings ...
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
using System;
|
||||
using xDataService.Configuration;
|
||||
using xDataService.Providers;
|
||||
using xFileService.Interfaces;
|
||||
using xFileService.Interfaces.Entities;
|
||||
using xFileService.Models.Entities;
|
||||
|
||||
namespace xFileService.Providers
|
||||
namespace xFileService.Providers.Entities
|
||||
{
|
||||
public abstract class XFileSeederBase : XBaseDbSeeder<XFile, Guid>, IXFileSeeder
|
||||
{
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using xDataService.Configuration;
|
||||
using xDataService.GraphQL;
|
||||
using xFileService.Constants;
|
||||
using xFileService.Interfaces.Entities;
|
||||
using xFileService.Models.Entities;
|
||||
|
||||
@@ -15,12 +16,12 @@ namespace xFileService.Providers.GraphQL
|
||||
|
||||
public override string GetInQueryCollectionName()
|
||||
{
|
||||
return "files";
|
||||
return XFileServiceConstants.XFileCollectionName;
|
||||
}
|
||||
|
||||
public override string GetInQuerySingleName()
|
||||
{
|
||||
return "file";
|
||||
return XFileServiceConstants.XFileSingleName;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
using xFileService.Constants;
|
||||
using xFileService.Interfaces;
|
||||
using xFileService.Models.Entities;
|
||||
using xTagService.Interfaces.Dtos;
|
||||
using xTagService.Providers;
|
||||
|
||||
@@ -11,8 +11,8 @@ namespace xFileService.Providers
|
||||
public XFileTagProvider(
|
||||
IXTagServiceProvider tagProvider
|
||||
) : base(
|
||||
providedFor: nameof(XFile),
|
||||
tagProvider: tagProvider
|
||||
tagProvider: tagProvider,
|
||||
providedFor: XFileServiceConstants.XFileTagProvided
|
||||
)
|
||||
{ }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user