public void SerializeToXml() { Skip.IfNot(BizTalkServerGroup.IsConfigured); var oha = new HttpAdapter.Outbound( a => { a.RequestTimeout = TimeSpan.FromMinutes(2); a.AuthenticationScheme = HttpAdapter.AuthenticationScheme.Digest; a.UseSSO = true; a.AffiliateApplicationName = "BizTalk.Factory"; }); var xml = oha.GetAdapterBindingInfoSerializer().Serialize(); xml.Should().Be( "<CustomProps>" + "<EnableChunkedEncoding vt=\"11\">-1</EnableChunkedEncoding>" + "<RequestTimeout vt=\"3\">120</RequestTimeout>" + "<MaxRedirects vt=\"3\">5</MaxRedirects>" + "<ContentType vt=\"8\">text/xml</ContentType>" + "<UseHandlerProxySettings vt=\"11\">-1</UseHandlerProxySettings>" + "<AuthenticationScheme vt=\"8\">Digest</AuthenticationScheme>" + "<UseSSO vt=\"11\">-1</UseSSO>" + "<AffiliateApplicationName vt=\"8\">BizTalk.Factory</AffiliateApplicationName>" + "</CustomProps>"); }
public void SerializeToXml() { var oha = new HttpAdapter.Outbound( a => { a.RequestTimeout = TimeSpan.FromMinutes(2); a.AuthenticationScheme = HttpAdapter.AuthenticationScheme.Digest; a.UseSSO = true; a.AffiliateApplicationName = "BizTalk.Factory"; }); var xml = ((IAdapterBindingSerializerFactory)oha).GetAdapterBindingSerializer().Serialize(); Assert.That( xml, Is.EqualTo( "<CustomProps>" + "<EnableChunkedEncoding vt=\"11\">-1</EnableChunkedEncoding>" + "<RequestTimeout vt=\"3\">120</RequestTimeout>" + "<MaxRedirects vt=\"3\">5</MaxRedirects>" + "<ContentType vt=\"8\">text/xml</ContentType>" + "<UseHandlerProxySettings vt=\"11\">-1</UseHandlerProxySettings>" + "<AuthenticationScheme vt=\"8\">Digest</AuthenticationScheme>" + "<UseSSO vt=\"11\">-1</UseSSO>" + "<AffiliateApplicationName vt=\"8\">BizTalk.Factory</AffiliateApplicationName>" + "</CustomProps>")); }
public void ValidateDoesNotThrow() { var oha = new HttpAdapter.Outbound( a => { a.RequestTimeout = TimeSpan.FromMinutes(2); a.AuthenticationScheme = HttpAdapter.AuthenticationScheme.Anonymous; a.UseSSO = true; a.AffiliateApplicationName = "BizTalk.Factory"; }); Assert.That(() => ((ISupportValidation)oha).Validate(), Throws.Nothing); }
public void ValidateDoesNotThrow() { Skip.IfNot(BizTalkServerGroup.IsConfigured); var oha = new HttpAdapter.Outbound( a => { a.RequestTimeout = TimeSpan.FromMinutes(2); a.AuthenticationScheme = HttpAdapter.AuthenticationScheme.Anonymous; a.UseSSO = true; a.AffiliateApplicationName = "BizTalk.Factory"; }); Invoking(() => ((ISupportValidation)oha).Validate()).Should().NotThrow(); }