public void Process(MyArgs args, ICounter counter, IRemover remover, IReverser reverser, IFileBrowser browser) //Method injection { while (true) { if (args.FilePath != null) { if (args.Remove) { remover.RemoveWord(args); } if (args.ShowTen) { counter.CountWords(args); } if (args.ReverseSentence) { reverser.ReverseSentence(args, 3); } } if (args.DirPath != null) { if (browser.ShowContent(args.DirPath, args)) { continue; } } break; } }
public DareController(Program program, IRemover remover) { Contract.Requires(program != null); Program = program; if (!IsProgramValid()) throw new NotValidException(); var removalTypeFinder = new RemovableTypeFinder(program); AllRemovableTypes = removalTypeFinder.FindRemovables(); Remover = remover; }
public DareController(Program program, IRemover remover) { Contract.Requires(program != null); Program = program; if (!IsProgramValid()) { throw new NotValidException(); } var removalTypeFinder = new RemovableTypeFinder(program); AllRemovableTypes = removalTypeFinder.FindRemovables(); Remover = remover; }
public Translator(IPhoneTypeDetector phoneTypeDetector, IRemover remover) { this.phoneTypeDetector = phoneTypeDetector; this.remover = remover; }
public RemoveCommand(IRemover remover, IBlobsListing listing) { this.remover = remover; this.listing = listing; }