コード例 #1
0
        public void IsExcludedServiceBehaviorBaseFalseTests()
        {
            // Arrange
            var sb     = new ServiceBehavior1();
            var attrib = new ExcludedServiceBehaviorsAttribute("ServiceBehaviorBogus");

            // Act & Assert
            Assert.IsFalse(ServiceBehaviorApplicator.IsExcluded(sb, attrib));
        }
コード例 #2
0
        public void IsExcludedServiceBehaviorByTypeFalseTests()
        {
            // Arrange
            var sb     = new ServiceBehavior1();
            var attrib = new ExcludedServiceBehaviorTypesAttribute(ServiceBehaviorType.Authenticator);

            // Act & Assert
            Assert.IsTrue(ServiceBehaviorApplicator.IsExcluded(sb, attrib));
        }
コード例 #3
0
        public void IsIncludedServiceBehaviorBaseTrueTests()
        {
            // Arrange
            var sb     = new ServiceBehavior1();
            var attrib = new IncludedServiceBehaviorsAttribute("ServiceBehavior1");

            // Act & Assert
            Assert.IsTrue(ServiceBehaviorApplicator.IsIncluded(sb, attrib));
        }