コード例 #1
0
        public void WithTraitAddsFeatureTrait(string featureId, IFeatureTrait trait)
        {
            IFeature feature = FeatureBuilder.Create(featureId)
                .WithTrait(trait)
                .Build();

            Assert.Contains(trait, feature.Traits);
        }
コード例 #2
0
        public void WithTraitAddsFeatureTrait(string featureId, IFeatureTrait trait)
        {
            IFeature feature = FeatureBuilder.Create(featureId)
                               .WithTrait(trait)
                               .Build();

            Assert.Contains(trait, feature.Traits);
        }
コード例 #3
0
ファイル: FeatureBuilder.cs プロジェクト: johnduhart/toggled
        public IFeatureBuilder WithTrait(IFeatureTrait trait)
        {
            if (trait == null)
                throw new ArgumentNullException(nameof(trait));

            _traits.Add(trait);
            return this;
        }
コード例 #4
0
ファイル: FeatureBuilder.cs プロジェクト: seankearney/toggled
        public IFeatureBuilder WithTrait(IFeatureTrait trait)
        {
            if (trait == null)
            {
                throw new ArgumentNullException(nameof(trait));
            }

            _traits.Add(trait);
            return(this);
        }