コード例 #1
0
        public void WriteAllEventsForNonExistingValor()
        {
            List<EventWebsiteDescription> descriptions = TestHelper.GetEventWebsiteDescriptions();
            Assert.AreNotEqual(0, descriptions.Count());

            var wrapper = new CatWebserviceWrapper(Service);
            IWebserviceResult connect = wrapper.Connect();
            Assert.IsFalse(connect.HasErrors, connect.ServiceMessage);
            Assert.IsTrue(wrapper.IsConnected);

            IWebserviceResult writeEvents = wrapper.WriteEvents(Settings.Default.InvalidValor, descriptions);
            Assert.IsFalse(writeEvents.HasErrors, writeEvents.ServiceMessage);
        }