Ejemplo n.º 1
0
 public void TestInit()
 {
     this.sut     = new TestableMicrosoftMachineTranslatorConnector();
     this.options = new MockedTranslationOptions()
     {
         SourceLanguage = "en", TargetLanguage = "bg"
     };
 }
Ejemplo n.º 2
0
        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);
        }