Ejemplo n.º 1
0
        public void NotificationPushFailTransactionTest()
        {
            BvgConnectorMock connector = GetConnector(NotificationPushDataProvider.GetNotificationPushWrongTransaction());

            NotificationPushBVG response = connector.NotificationPush(NotificationPushDataProvider.GetNotificationPushBVG());

            Assert.AreNotEqual(null, response);

            Assert.AreEqual(false, String.IsNullOrEmpty(response.GetStatusCode()));
            Assert.AreEqual(false, String.IsNullOrEmpty(response.GetStatusMessage()));

            Assert.AreEqual("2070", response.GetStatusCode());
        }
Ejemplo n.º 2
0
        public void NotificationPushFailWithoutFieldTest()
        {
            BvgConnectorMock connector = GetConnector(NotificationPushDataProvider.GetNotificationPushWithoutField());

            NotificationPushBVG response = connector.NotificationPush(NotificationPushDataProvider.GetNotificationPushBVG());

            Assert.AreNotEqual(null, response);

            Assert.AreEqual(false, String.IsNullOrEmpty(response.GetStatusCode()));
            Assert.AreEqual(false, String.IsNullOrEmpty(response.GetStatusMessage()));

            Assert.AreEqual("1014", response.GetStatusCode());
        }
Ejemplo n.º 3
0
        public void TransactionFailValidationTest()
        {
            BvgConnectorMock connector = GetConnector(NotificationPushDataProvider.GetNotificationPushOkResponse());

            NotificationPushBVG response = connector.NotificationPush(NotificationPushDataProvider.GetNotificationPushWrongFieldBVG());
        }