Esempio 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());
        }
Esempio 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());
        }