public static ProgramInput ReadFromConsole(this ProgramInput programInput) { var reader = new ProgramInputConsoleReader(programInput); reader.Read(); return(programInput); }
public static ProgramInput ReadFromJson(this ProgramInput programInput, string fileName) { var reader = new ProgramInputJsonReader(programInput); reader.Read(fileName); return(programInput); }
public static ProgramInput ReadFromArgs(this ProgramInput programInput, IReadOnlyList <string> args) { var reader = new ProgramInputArgsReader(programInput); reader.Read(args); return(programInput); }
public ProgramInputJsonReader(ProgramInput input) { _input = input; }
public ProgramInputArgsReader(ProgramInput input) { _input = input; }
public ProgramInputConsoleReader(ProgramInput programInput) { _input = programInput; }