public void Input_Parameter_Verifier_Test_Ent_Data_Serialization_Errors() { var SUT = new InputParameterVerifier(_successSerHelper.Object, _failUnserializableTypehelper.Object); var data = new InterceptionProcessingData(DataHelper.DateTimeAddDaysData.Entry, _config); var res = SUT.Verify(data); Assert.IsTrue(res.Any()); }
public void Input_Parameter_Verifier_Test_Failed_Serialization_Adds_To_DB() { var SUT = new InputParameterVerifier(_failSerHelper.Object, _successUnserializableTypehelper.Object); var data = new InterceptionProcessingData(DataHelper.DateTimeAddDaysData.Entry, _config); var res = SUT.Verify(data); Assert.IsTrue(res.Any()); _successUnserializableTypehelper.Verify(x => x.AddUnserializableType(It.IsAny <Type>()), Times.Once); }