Skip to content

Commit

Permalink
リファクタ
Browse files Browse the repository at this point in the history
  • Loading branch information
r-koubou committed Nov 29, 2023
1 parent 8a1e05a commit aec5b9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Threading.Tasks;

using KeySwitchManager.Interactors.KeySwitches;
using KeySwitchManager.UseCase.Commons;
using KeySwitchManager.UseCase.KeySwitches.Create;
using KeySwitchManager.UseCase.KeySwitches.Export;

Expand All @@ -11,11 +10,11 @@ namespace KeySwitchManager.Applications.Standalone.Core.Controllers.Create
public class CreateFileController : IController
{
private IExportStrategy Strategy { get; }
private IOutputPort<CreateOutputData> Presenter { get; }
private ICreatePresenter Presenter { get; }

public CreateFileController(
IExportStrategy strategy,
IOutputPort<CreateOutputData> presenter )
ICreatePresenter presenter )
{
Strategy = strategy;
Presenter = presenter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,19 @@
using KeySwitchManager.Infrastructures.Storage.KeySwitches;
using KeySwitchManager.Infrastructures.Storage.Spreadsheet.ClosedXml.KeySwitches.Export;
using KeySwitchManager.Infrastructures.Storage.Yaml.KeySwitches.Export;
using KeySwitchManager.UseCase.Commons;
using KeySwitchManager.UseCase.KeySwitches.Create;
using KeySwitchManager.UseCase.KeySwitches.Export;

namespace KeySwitchManager.Applications.Standalone.Core.Controllers.Create
{
public interface ICreateControllerFactory
{
IController Create( string outputFilePath, IOutputPort<CreateOutputData> presenter );
IController Create( string outputFilePath, ICreatePresenter presenter );
}

public class CreateFileControllerFactory : ICreateControllerFactory
{
IController ICreateControllerFactory.Create( string outputFilePath, IOutputPort<CreateOutputData> presenter )
IController ICreateControllerFactory.Create( string outputFilePath, ICreatePresenter presenter )
{
var outputDirectory = new DirectoryPath( Path.GetDirectoryName( outputFilePath ) ?? string.Empty );
var fileName = outputFilePath.ToLower();
Expand Down

0 comments on commit aec5b9b

Please sign in to comment.