public SpeechMaker(IConfigSettings configSettings, ISpeechTextParser speechTextParser) { _speechTextParser = speechTextParser; _brokenBuildText = configSettings.BrokenBuildText; _fixedBuildText = configSettings.FixedBuildText; configSettings.AddObserver(this); }
public void SetUp() { MockRepository.GenerateStub<IBuildBuster>(); _speechTextParser = MockRepository.GenerateMock<ISpeechTextParser>(); _projectStatusList = new List<ProjectStatus> { new ProjectStatus("Project2") { LastBuildStatus = ProjectStatus.SUCCESS } }; _speaker = new SpeechMaker(new ConfigSettings { FixedBuildText = ProjectFixedText, BrokenBuildText = ProjectBrokenText }, _speechTextParser); }
public void SetUp() { Create.Stub <IBuildBuster>(); _speechTextParser = MockRepository.GenerateMock <ISpeechTextParser>(); _projectStatusList = new List <ProjectStatus> { new ProjectStatus("Project2") { LastBuildStatus = ProjectStatus.SUCCESS } }; _speaker = new SpeechMaker(new ConfigSettings { FixedBuildText = ProjectFixedText, BrokenBuildText = ProjectBrokenText }, _speechTextParser); }