示例#1
0
        public void ChannelDataChunkAdapter_AddToStore_Error_463_Nodes_With_Same_Index()
        {
            AddParents();

            var logData = _devKit.List <string>();

            _log.LogData = _devKit.List(new LogData()
            {
                Data = logData
            });

            logData.Add("13,13.1,");
            logData.Add("14,14.1,");
            logData.Add("15,15.1,");
            logData.Add("15,16.1,");
            logData.Add("17,17.1,");
            logData.Add("21,,21.2");
            logData.Add("22,,22.2");
            logData.Add("23,,23.2");
            _devKit.InitHeader(_log, LogIndexType.measureddepth);

            var response = _devKit.Add <LogList, Log>(_log);

            Assert.AreEqual((short)ErrorCodes.NodesWithSameIndex, response.Result);
        }
        public void WitsmlValidator_GetFromStore_ReturnElement_HeaderOnly_For_Growing_Object()
        {
            var query = new Log {
                Uid = "", Name = ""
            };
            var response = DevKit.Get <LogList, Log>(DevKit.List(query), ObjectTypes.Log, optionsIn: OptionsIn.ReturnElements.HeaderOnly);

            Assert.AreEqual((short)ErrorCodes.Success, response.Result);
        }
示例#3
0
        public void TestSetUp()
        {
            Logger.Debug($"Executing {TestContext.TestName}");
            DevKit = new DevKit141Aspect(TestContext);

            DevKit.Store.CapServerProviders = DevKit.Store.CapServerProviders
                                              .Where(x => x.DataSchemaVersion == OptionsIn.DataVersion.Version141.Value)
                                              .ToArray();

            Well = new Well
            {
                Uid  = DevKit.Uid(),
                Name = DevKit.Name("Well"),

                TimeZone = DevKit.TimeZone
            };
            Wellbore = new Wellbore
            {
                Uid  = DevKit.Uid(),
                Name = DevKit.Name("Wellbore"),

                UidWell  = Well.Uid,
                NameWell = Well.Name,
                MD       = new MeasuredDepthCoord(0, MeasuredDepthUom.ft)
            };

            QueryEmptyList = DevKit.List(new Wellbore());

            BeforeEachTest();
            OnTestSetUp();
        }
        public void TestSetUp()
        {
            Logger.Debug($"Executing {TestContext.TestName}");
            DevKit = new DevKit141Aspect(TestContext);

            DevKit.Store.CapServerProviders = DevKit.Store.CapServerProviders
                                              .Where(x => x.DataSchemaVersion == OptionsIn.DataVersion.Version141.Value)
                                              .ToArray();

            ToolErrorTermSet = new ToolErrorTermSet
            {
                Uid  = DevKit.Uid(),
                Name = DevKit.Name("ToolErrorTermSet")
            };

            QueryEmptyList = DevKit.List(new ToolErrorTermSet());

            BeforeEachTest();
            OnTestSetUp();
        }
示例#5
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));
        }