public void TestSetUp() { Logger.Debug($"Executing {TestContext.TestName}"); DevKit = new DevKit200Aspect(TestContext); Well = new Well { Uuid = DevKit.Uid(), Citation = DevKit.Citation("Well"), GeographicLocationWGS84 = DevKit.Location(), SchemaVersion = "2.0", TimeZone = DevKit.TimeZone }; DownholeComponent = new DownholeComponent { Uuid = DevKit.Uid(), Citation = DevKit.Citation("DownholeComponent"), Well = DevKit.DataObjectReference(Well), SchemaVersion = EtpUris.GetUriFamily(typeof(DownholeComponent)).Version, }; BeforeEachTest(); OnTestSetUp(); }
protected override void PrepareData() { Well = new Well { Uuid = DevKit.Uid(), Citation = DevKit.Citation("Well"), GeographicLocationWGS84 = DevKit.Location(), SchemaVersion = "2.0", TimeZone = DevKit.TimeZone }; Wellbore = new Wellbore { Uuid = DevKit.Uid(), Citation = DevKit.Citation("Wellbore"), Well = DevKit.DataObjectReference(Well), SchemaVersion = "2.0" }; Tubular = new Tubular { Uuid = DevKit.Uid(), Citation = DevKit.Citation("Tubular"), Wellbore = DevKit.DataObjectReference(Wellbore), SchemaVersion = EtpUris.GetUriFamily(typeof(Tubular)).Version, }; }
public void TestSetUp() { Logger.Debug($"Executing {TestContext.TestName}"); DevKit = new DevKit200Aspect(TestContext); Well = new Well { Uuid = DevKit.Uid(), Citation = DevKit.Citation("Well"), GeographicLocationWGS84 = DevKit.Location(), SchemaVersion = "2.0", TimeZone = DevKit.TimeZone }; Wellbore = new Wellbore { Uuid = DevKit.Uid(), Citation = DevKit.Citation("Wellbore"), Well = DevKit.DataObjectReference(Well), SchemaVersion = "2.0" }; SurveyProgram = new SurveyProgram { Uuid = DevKit.Uid(), Citation = DevKit.Citation("SurveyProgram"), Wellbore = DevKit.DataObjectReference(Wellbore), SchemaVersion = EtpUris.GetUriFamily(typeof(SurveyProgram)).Version, }; BeforeEachTest(); OnTestSetUp(); }
protected override void PrepareData() { WellboreCompletion = new WellboreCompletion { SchemaVersion = EtpUris.GetUriFamily(typeof(WellboreCompletion)).Version, Uuid = DevKit.Uid(), Citation = DevKit.Citation("WellboreCompletion") }; }
protected override void PrepareData() { CementJobEvaluation = new CementJobEvaluation { SchemaVersion = EtpUris.GetUriFamily(typeof(CementJobEvaluation)).Version, Uuid = DevKit.Uid(), Citation = DevKit.Citation("CementJobEvaluation") }; }
protected override void PrepareData() { DataAssuranceRecord = new DataAssuranceRecord { SchemaVersion = EtpUris.GetUriFamily(typeof(DataAssuranceRecord)).Version, Uuid = DevKit.Uid(), Citation = DevKit.Citation("DataAssuranceRecord") }; }
protected override void PrepareData() { StimJobStage = new StimJobStage { SchemaVersion = EtpUris.GetUriFamily(typeof(StimJobStage)).Version, Uuid = DevKit.Uid(), Citation = DevKit.Citation("StimJobStage") }; }
protected override void PrepareData() { ToolErrorTermSet = new ToolErrorTermSet { SchemaVersion = EtpUris.GetUriFamily(typeof(ToolErrorTermSet)).Version, Uuid = DevKit.Uid(), Citation = DevKit.Citation("ToolErrorTermSet") }; }
protected override void PrepareData() { Rig = new Rig { SchemaVersion = EtpUris.GetUriFamily(typeof(Rig)).Version, Uuid = DevKit.Uid(), Citation = DevKit.Citation("Rig") }; }
protected override void PrepareData() { Activity = new Activity { SchemaVersion = EtpUris.GetUriFamily(typeof(Activity)).Version, Uuid = DevKit.Uid(), Citation = DevKit.Citation("Activity") }; }
/// <summary> /// Adds the content types managed by this data adapter to the collection of <see cref="EtpContentType"/>. /// </summary> /// <param name="contentTypes">A collection of content types.</param> public virtual void GetSupportedObjects(IList <EtpContentType> contentTypes) { var type = typeof(TObject); if (type.Assembly != typeof(IDataObject).Assembly) { return; } var contentType = EtpUris.GetUriFamily(type) .Append(ObjectTypes.GetObjectType(type)) .ContentType; contentTypes.Add(contentType); }
/// <summary> /// Adds the content types managed by this data adapter to the collection of <see cref="EtpContentType"/>. /// </summary> /// <param name="contentTypes">A collection of content types.</param> public virtual void GetSupportedObjects(IList <EtpContentType> contentTypes) { var type = typeof(TObject); if (!ObjectTypes.IsEnergisticsObjectType(type)) { return; } var contentType = EtpUris.GetUriFamily(type) .Append(ObjectTypes.GetObjectType(type)) .ContentType; contentTypes.Add(contentType); }
public void TestSetUp() { Logger.Debug($"Executing {TestContext.TestName}"); DevKit = new DevKit200Aspect(TestContext); StimJobStage = new StimJobStage { SchemaVersion = EtpUris.GetUriFamily(typeof(StimJobStage)).Version, Uuid = DevKit.Uid(), Citation = DevKit.Citation("StimJobStage") }; BeforeEachTest(); OnTestSetUp(); }
public void TestSetUp() { Logger.Debug($"Executing {TestContext.TestName}"); DevKit = new DevKit200Aspect(TestContext); ToolErrorModel = new ToolErrorModel { SchemaVersion = EtpUris.GetUriFamily(typeof(ToolErrorModel)).Version, Uuid = DevKit.Uid(), Citation = DevKit.Citation("ToolErrorModel") }; BeforeEachTest(); OnTestSetUp(); }
public void TestSetUp() { Logger.Debug($"Executing {TestContext.TestName}"); DevKit = new DevKit200Aspect(TestContext); WellboreCompletion = new WellboreCompletion { SchemaVersion = EtpUris.GetUriFamily(typeof(WellboreCompletion)).Version, Uuid = DevKit.Uid(), Citation = DevKit.Citation("WellboreCompletion") }; BeforeEachTest(); OnTestSetUp(); }
public void TestSetUp() { Logger.Debug($"Executing {TestContext.TestName}"); DevKit = new DevKit200Aspect(TestContext); DataAssuranceRecord = new DataAssuranceRecord { SchemaVersion = EtpUris.GetUriFamily(typeof(DataAssuranceRecord)).Version, Uuid = DevKit.Uid(), Citation = DevKit.Citation("DataAssuranceRecord") }; BeforeEachTest(); OnTestSetUp(); }
public void TestSetUp() { Logger.Debug($"Executing {TestContext.TestName}"); DevKit = new DevKit200Aspect(TestContext); ActivityTemplate = new ActivityTemplate { SchemaVersion = EtpUris.GetUriFamily(typeof(ActivityTemplate)).Version, Uuid = DevKit.Uid(), Citation = DevKit.Citation("ActivityTemplate") }; BeforeEachTest(); OnTestSetUp(); }
protected override void PrepareData() { Well = new Well { Uuid = DevKit.Uid(), Citation = DevKit.Citation("Well"), GeographicLocationWGS84 = DevKit.Location(), SchemaVersion = "2.0", TimeZone = DevKit.TimeZone }; WellCompletion = new WellCompletion { Uuid = DevKit.Uid(), Citation = DevKit.Citation("WellCompletion"), Well = DevKit.DataObjectReference(Well), SchemaVersion = EtpUris.GetUriFamily(typeof(WellCompletion)).Version, }; }
/// <summary> /// Gets the URI. /// </summary> /// <param name="type">The type.</param> /// <returns>The URI.</returns> public EtpUri GetUri(Type type) { var objectType = ObjectTypes.GetObjectType(type); var baseUri = EtpUris.GetUriFamily(type); if (typeof(Witsml200.AbstractObject).IsAssignableFrom(type)) { return(baseUri.Append(objectType, Attribute("uuid"))); } if (typeof(IWellObject).IsAssignableFrom(type)) { baseUri = baseUri.Append(ObjectTypes.Well, Attribute("uidWell")); } if (typeof(IWellboreObject).IsAssignableFrom(type)) { baseUri = baseUri.Append(ObjectTypes.Wellbore, Attribute("uidWellbore")); } return(baseUri.Append(objectType, Attribute("uid"))); }