public void Well141DataAdapter_DeleteFromStore_Acquisition_Success()
        {
            // Add well with three acquisitions
            var response = DevKit.AddValidAcquisition(Well);

            var deleteWellAcqusition = new Well()
            {
                Uid        = response.SuppMsgOut,
                CommonData = new CommonData
                {
                    AcquisitionTimeZone = new List <TimestampedTimeZone>()
                    {
                        new TimestampedTimeZone()
                        {
                            DateTimeSpecified = false
                        },
                    }
                }
            };

            // Delete well acqusitions and Assert success
            DevKit.DeleteAndAssert(deleteWellAcqusition, partialDelete: true);

            var queryWell = DevKit.GetAndAssert(new Well()
            {
                Uid = response.SuppMsgOut
            });

            Assert.IsNotNull(queryWell.CommonData);
            Assert.IsNotNull(queryWell.CommonData.AcquisitionTimeZone);
            Assert.AreEqual(0, queryWell.CommonData.AcquisitionTimeZone.Count);
        }
        public void Well141DataAdapter_UpdateInStore_Acquisition_Success()
        {
            // Add a valid well with three AcquisitionTimeZones
            var response = DevKit.AddValidAcquisition(Well);

            var updateWell = new Well()
            {
                Uid        = response.SuppMsgOut,
                CommonData = new CommonData
                {
                    AcquisitionTimeZone = new List <TimestampedTimeZone>()
                    {
                        new TimestampedTimeZone()
                        {
                            DateTimeSpecified = true, DateTime = DateTime.UtcNow, Value = "+03:00"
                        }
                    }
                }
            };

            // Update and Assert for success
            DevKit.UpdateAndAssert(updateWell);

            // Retrieve the updated well and check that there are four acquisitions
            var queryWell = DevKit.GetAndAssert(new Well()
            {
                Uid = response.SuppMsgOut
            });

            Assert.IsNotNull(queryWell.CommonData);
            Assert.IsNotNull(queryWell.CommonData.AcquisitionTimeZone);
            Assert.AreEqual(4, queryWell.CommonData.AcquisitionTimeZone.Count);
        }
        public void Well141DataAdapter_UpdateInStore_Acquisition_Error_483()
        {
            // Add a valid well with three AcquisitionTimeZones
            var response = DevKit.AddValidAcquisition(Well);

            var updateWell = new Well()
            {
                Uid        = response.SuppMsgOut,
                CommonData = new CommonData
                {
                    AcquisitionTimeZone = new List <TimestampedTimeZone>()
                    {
                        // Appending a subsequent TimestampedTimeZone without a DateTime specified is an error
                        new TimestampedTimeZone {
                            DateTimeSpecified = false, Value = "+03:00"
                        }
                    }
                }
            };

            // Update and Assert for error
            DevKit.UpdateAndAssert(updateWell, ErrorCodes.UpdateTemplateNonConforming);
        }
 public void Well141DataAdapter_AddToStore_Acquisition_Success()
 {
     DevKit.AddValidAcquisition(Well);
 }