Exemple #1
0
        public void FilterOnTypeWithImplicitStringCastOperator()
        {
            var environmentTag = new ImplicitlyStringUnderlainEnvironmentTag("TAG");
            var filter         = new Filter(() => BizTalkFactoryProperties.OutboundTransportLocation == environmentTag);

            filter.ToString().Should().Be(
                "<Filter><Group>"
                + $"<Statement Property=\"{BizTalkFactoryProperties.OutboundTransportLocation.Type.FullName}\" Operator=\"{(int) FilterOperator.Equals}\" Value=\"{(string) environmentTag}\" />"
                + "</Group></Filter>");
        }
Exemple #2
0
        public void EqualToStringMember()
        {
            var environmentTag = new ImplicitlyStringUnderlainEnvironmentTag(TargetEnvironment.ACCEPTANCE);

            var filter = new Filter(() => BizTalkFactoryProperties.OutboundTransportLocation == environmentTag.Value);

            filter.ToString().Should().Be(
                "<Filter><Group>"
                + $"<Statement Property=\"{BizTalkFactoryProperties.OutboundTransportLocation.Type.FullName}\" Operator=\"{(int) FilterOperator.Equals}\" Value=\"{environmentTag.Value}\" />"
                + "</Group></Filter>");
        }