Пример #1
0
        public void Setup()
        {
            InitializeProperties();
            Mock <FormattingOptionProcessor> mockFormattingOptionProcessor = OptionProcessorValidResponse();

            systemUnderTest = new ObfuscationFormattingString(mockFormattingOptionProcessor.Object);
            originalValue   = "OriginalValue";
        }
Пример #2
0
        public void ReturnADifferentValueToTheOriginalValueFromTheMethodCreateFormattedValueWhenTheFirstValueMatchedTheOriginal()
        {
            Mock <FormattingOptionProcessor> mockFormattingOptionProcessor = OptionProcessorSequenceOfResponses();

            systemUnderTest = new ObfuscationFormattingString(mockFormattingOptionProcessor.Object);

            var newValue = systemUnderTest.CreateFormattedValue(originalValue, CreateFieldToBeObfuscatedValidObject(), CreateMetadataParamters());

            newValue.Should().NotBe(originalValue);
        }