Пример #1
0
        public void Return_Val_Verifier_Test_Exit_Serialization_Fails_Verifier()
        {
            var SUT  = new ReturnValVerifier(_failSerHelper.Object, _successUnserializableTypehelper.Object);
            var data = new InterceptionProcessingData(DataHelper.DateTimeAddDaysData.Exit, _config);
            var res  = SUT.Verify(data);

            Assert.IsTrue(res.Any());
        }
Пример #2
0
        public void Return_Val_Verifier_Test_Ent_Data_Serialization_Errors()
        {
            var SUT  = new ReturnValVerifier(_successSerHelper.Object, _failUnserializableTypehelper.Object);
            var data = new InterceptionProcessingData(DataHelper.DateTimeAddDaysData.Entry, _config);
            var res  = SUT.Verify(data);

            Assert.IsTrue(!res.Any());
        }
Пример #3
0
        public void Return_Val_Verifier_Test_Failed_Serialization_Adds_To_DB()
        {
            var SUT  = new ReturnValVerifier(_failSerHelper.Object, _successUnserializableTypehelper.Object);
            var data = new InterceptionProcessingData(DataHelper.DateTimeAddDaysData.Exit, _config);
            var res  = SUT.Verify(data);

            Assert.IsTrue(res.Any());
            _successUnserializableTypehelper.Verify(x => x.AddUnserializableType(It.IsAny <Type>()), Times.Once);
        }