public override void AnnounceResolvedBuild(string buildName, string requestorNetworkId, DateTime requestTime) { TextToSpeechConfiguration textToSpeechConfiguration = _configurationManager.Load(); string name = textToSpeechConfiguration.GetNameFromNetworkId(requestorNetworkId); string announcement = string.Format(BuildCorrected, name, buildName); _speechLibrary.Speak(announcement); }
public void SetUp() { _speechLibraryMock = new Mock<ISpeechLibrary>(); _configurationManagerMock = new Mock<IConfigurationManager<TextToSpeechConfiguration>>(); _textToSpeechNotifier = new TextToSpeechNotifier(_speechLibraryMock.Object, _configurationManagerMock.Object); textToSpeechConfiguration = new TextToSpeechConfiguration(); textToSpeechConfiguration.AddNetworkIdToNameMap(requestorId, requestorName); }