public static Dictionary <int, ISentenceOperation> CreateStrategyMapper(ICustomSentenceFormatter customSentenceFormatter) { return(new Dictionary <int, ISentenceOperation> { { 1, new DuplicateCheckOperation(customSentenceFormatter) }, { 2, new VowelCountCheckOperation(customSentenceFormatter) }, { 3, new VowelComparerCheckOperation(customSentenceFormatter) } }); }
public void Setup() { _customSentenceFormatter = new CustomSentenceFormatter(); _sentenceService = new VowelComparerCheckOperation(_customSentenceFormatter); }
public VowelCountCheckOperation(ICustomSentenceFormatter customSentenceFormatter) { _customSentenceFormatter = customSentenceFormatter; }
public void Setup() { _customSentenceFormatter = new CustomSentenceFormatter(); _mockSentenceFormatter = new Mock <ICustomSentenceFormatter>(MockBehavior.Default); }
public DuplicateCheckOperation(ICustomSentenceFormatter customSentenceFormatter) { _customSentenceFormatter = customSentenceFormatter; }
public void Setup() { _customSentenceFormatter = new CustomSentenceFormatter(); _sentenceService = new DuplicateCheckOperation(_customSentenceFormatter); }