Exemple #1
0
        public void SerializeToXml()
        {
            Skip.IfNot(BizTalkServerGroup.IsConfigured);

            var ifa = new FileAdapter.Inbound(a => { a.ReceiveFolder = @"c:\file\drops"; });
            var xml = ifa.GetAdapterBindingInfoSerializer().Serialize();

            xml.Should().Be(
                "<CustomProps>" +
                "<BatchSize vt=\"19\">20</BatchSize>" +
                "<BatchSizeInBytes vt=\"19\">102400</BatchSizeInBytes>" +
                "<FileMask vt=\"8\">*.xml</FileMask>" +
                "<FileNetFailRetryCount vt=\"19\">5</FileNetFailRetryCount>" +
                "<FileNetFailRetryInt vt=\"19\">5</FileNetFailRetryInt>" +
                "<PollingInterval vt=\"19\">60000</PollingInterval>" +
                "<RemoveReceivedFileDelay vt=\"19\">10</RemoveReceivedFileDelay>" +
                "<RemoveReceivedFileMaxInterval vt=\"19\">300000</RemoveReceivedFileMaxInterval>" +
                "<RemoveReceivedFileRetryCount vt=\"19\">5</RemoveReceivedFileRetryCount>" +
                "<RenameReceivedFiles vt=\"11\">-1</RenameReceivedFiles>" +
                "</CustomProps>");
        }