public void TestInit() { this.sut = new TestableMicrosoftMachineTranslatorConnector(); this.options = new MockedTranslationOptions() { SourceLanguage = "en", TargetLanguage = "bg" }; }
public void TestInit() { this.sut = new TestableMicrosoftMachineTranslatorConnector(); this.options = new MockedTranslationOptions() { SourceLanguage = "en", TargetLanguage = "bg" }; var testConfig = new NameValueCollection(); testConfig.Add(Constants.ConfigParameters.BaseUrl, Constants.MicrosoftTranslatorEndpointConstants.DefaultEndpointUrl); testConfig.Add(Constants.ConfigParameters.ApiKey, new string('*', Constants.ValidApiKeyLength)); this.sut.InitializeCallMock(testConfig); }