示例#1
0
        public void WITSMLWebServiceConnection_Can_Write_And_Query_All_Wells()
        {
            // Add Well
            _devKit.Proxy.Write(_devKit.New <WellList>(x => x.Well = _devKit.List(_well1)));
            _devKit.Proxy.Write(_devKit.New <WellList>(x => x.Well = _devKit.List(_well2)));

            // Get all Wells
            var query  = _devKit.Query <WellList>();
            var result = _devKit.Proxy.Read(query);

            Assert.IsNotNull(result.Well);
            Assert.IsNotNull(result.Well.SingleOrDefault(x => x.Name == _well1.Name));
            Assert.IsNotNull(result.Well.SingleOrDefault(x => x.Name == _well2.Name));
        }