示例#1
0
        public async Task ThereIsAParametrizedDimensionStructureDomainObject(Table table)
        {
            ThereIsAParametrizedDimensionStructureDomainObjectEntity instance = table
                                                                                .CreateInstance <ThereIsAParametrizedDimensionStructureDomainObjectEntity>();

            string Name = ObjectPropertyValueHelper.CreateStringValueForProperty(
                instance.Name,
                FilterRules.StringValueFilters);
            string Desc = ObjectPropertyValueHelper.CreateStringValueForProperty(
                instance.Desc,
                FilterRules.StringValueFilters);

            DimensionStructure dimensionStructure = new DimensionStructure
            {
                Name     = Name,
                Desc     = Desc,
                IsActive = int.Parse(instance.IsActive),
            };

            _scenarioContext.Add(instance.Key, dimensionStructure);
        }
示例#2
0
        public void Should_FilterInputAndModifyAccordingToRules(string input, string expectedResult)
        {
            string result = ObjectPropertyValueHelper.CreateStringValueForProperty(input, _rules);

            result.Should().Be(expectedResult);
        }