示例#1
0
        public void WITSMLWebServiceConnection_Can_Query_Well_By_Uid()
        {
            // 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 Well by Uid
            var query = _devKit.Query <WellList>();

            query.Well = _devKit.One <Well>(x => x.Uid = _well1.Uid);

            var result = _devKit.Proxy.Read(query);

            Assert.AreEqual(1, result.Well.Count);
            Assert.IsNotNull(result.Well.SingleOrDefault(x => x.Uid == _well1.Uid));
        }