public void Setup() { InitializeProperties(); Mock <FormattingOptionProcessor> mockFormattingOptionProcessor = OptionProcessorValidResponse(); systemUnderTest = new ObfuscationFormattingString(mockFormattingOptionProcessor.Object); originalValue = "OriginalValue"; }
public void ReturnADifferentValueToTheOriginalValueFromTheMethodCreateFormattedValueWhenTheFirstValueMatchedTheOriginal() { Mock <FormattingOptionProcessor> mockFormattingOptionProcessor = OptionProcessorSequenceOfResponses(); systemUnderTest = new ObfuscationFormattingString(mockFormattingOptionProcessor.Object); var newValue = systemUnderTest.CreateFormattedValue(originalValue, CreateFieldToBeObfuscatedValidObject(), CreateMetadataParamters()); newValue.Should().NotBe(originalValue); }