Example #1
0
 /// <summary>
 /// Does get query for single wbGeometry object and test for result count equal to 1 and is not null
 /// </summary>
 /// <param name="wbGeometry">the wbGeometry with UIDs for well and wellbore</param>
 /// <param name="isNotNull">if set to <c>true</c> the result should not be null.</param>
 /// <param name="optionsIn">The options in.</param>
 /// <param name="queryByExample">if set to <c>true</c> query by example.</param>
 /// <returns>The first wbGeometry from the response</returns>
 public StandAloneWellboreGeometry GetAndAssert(StandAloneWellboreGeometry wbGeometry, bool isNotNull = true, string optionsIn = null, bool queryByExample = false)
 {
     return(GetAndAssert <WellboreGeometryList, StandAloneWellboreGeometry>(wbGeometry, isNotNull, optionsIn, queryByExample));
 }
Example #2
0
 /// <summary>
 /// Sets the additional default values.
 /// </summary>
 /// <param name="dataObject">The data object.</param>
 /// <param name="uri">The URI.</param>
 partial void SetAdditionalDefaultValues(StandAloneWellboreGeometry dataObject, EtpUri uri)
 {
     dataObject.DateTimeReport = dataObject.DateTimeReport ?? DateTimeOffset.UtcNow;
 }
Example #3
0
 /// <summary>
 /// Adds wbGeometry object and test the return code
 /// </summary>
 /// <param name="wbGeometry">the wbGeometry</param>
 /// <param name="errorCode">the errorCode</param>
 public WMLS_AddToStoreResponse AddAndAssert(StandAloneWellboreGeometry wbGeometry, ErrorCodes errorCode = ErrorCodes.Success)
 {
     return(AddAndAssert <WellboreGeometryList, StandAloneWellboreGeometry>(wbGeometry, errorCode));
 }