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() { _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 01"), TimeZone = _devKit.TimeZone }; _wellbore = new Wellbore() { Uid = _devKit.Uid(), UidWell = _well.Uid, NameWell = _well.Name, Name = _devKit.Name("Wellbore 01") }; _log = new Log() { Uid = _devKit.Uid(), UidWell = _well.Uid, UidWellbore = _wellbore.Uid, NameWell = _well.Name, NameWellbore = _wellbore.Name, Name = _devKit.Name("Log 01") }; }
public void TestSetUp() { _devKit = new DevKit141Aspect(TestContext); _dataAdapter = _devKit.Container.Resolve <IWitsmlDataAdapter <DbAuditHistory> >(); _changeLog = new DbAuditHistory { Uid = _devKit.Uid(), Name = _devKit.Name(), UidObject = _devKit.Uid(), NameObject = _devKit.Name(), ObjectType = ObjectTypes.Well, LastChangeType = ChangeInfoType.add, LastChangeInfo = $"Well was added for test {TestContext.TestName}", ChangeHistory = new List <ChangeHistory>() }; _changeLog.CommonData = _changeLog.CommonData.Create(); _changeLog.ChangeHistory.Add(new ChangeHistory { ChangeInfo = _changeLog.LastChangeInfo, ChangeType = _changeLog.LastChangeType, DateTimeChange = _changeLog.CommonData.DateTimeLastChange }); }
public void TestSetUp() { _devKit = new DevKit141Aspect(TestContext); _provider = _devKit.Container.Resolve <IDatabaseProvider>(); _testDataDir = new DirectoryInfo(@".\TestData").FullName; _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 01"), TimeZone = _devKit.TimeZone }; _wellbore = new Wellbore() { Uid = _devKit.Uid(), UidWell = _well.Uid, NameWell = _well.Name, Name = _devKit.Name("Wellbore 01") }; _log = _devKit.CreateLog(_devKit.Uid(), _devKit.Name("Log 01"), _well.Uid, _well.Name, _wellbore.Uid, _wellbore.Name); }
public void TestCleanUp() { AfterEachTest(); OnTestCleanUp(); DevKit.Container.Dispose(); DevKit = null; }
public void TestSetUp() { DevKit = new DevKit141Aspect(TestContext); _testDataDir = new DirectoryInfo(@".\TestData").FullName; DevKit.Store.CapServerProviders = DevKit.Store.CapServerProviders .Where(x => x.DataSchemaVersion == OptionsIn.DataVersion.Version141.Value) .ToArray(); Well = new Well { Name = DevKit.Name("Well 01"), TimeZone = DevKit.TimeZone }; Wellbore = new Wellbore() { NameWell = Well.Name, Name = DevKit.Name("Wellbore 01") }; Log = new Log() { NameWell = Well.Name, NameWellbore = Wellbore.Name, Name = DevKit.Name("Log 01") }; }
public void TestSetUp() { Logger.Debug($"Executing {TestContext.TestName}"); DevKit = new DevKit141Aspect(TestContext); EtpSetUp(DevKit.Container); _server.Start(); }
public void TestSetUp() { DevKit = new DevKit141Aspect(TestContext); var config = new NameValueCollection(ConfigurationManager.AppSettings); Provider = new MongoDbMembershipProvider(); Provider.Initialize(MongoDbMembershipProvider.ProviderName, config); }
public void TestSetUp() { _devKit = new DevKit141Aspect(TestContext); _devKit.Store.CapServerProviders = _devKit.Store.CapServerProviders .Where(x => x.DataSchemaVersion == OptionsIn.DataVersion.Version141.Value) .ToArray(); }
public void TestSetUp() { _devKit = new DevKit141Aspect(TestContext); _devKit.Store.CapServerProviders = _devKit.Store.CapServerProviders .Where(x => x.DataSchemaVersion == OptionsIn.DataVersion.Version141.Value) .ToArray(); _dataDir = new DirectoryInfo(@".\TestData").FullName; }
public void TestCleanup() { WitsmlSettings.LogMaxDataPointsGet = DevKitAspect.DefaultLogMaxDataPointsGet; WitsmlSettings.LogMaxDataPointsUpdate = DevKitAspect.DefaultLogMaxDataPointsAdd; WitsmlSettings.LogMaxDataPointsAdd = DevKitAspect.DefaultLogMaxDataPointsUpdate; WitsmlSettings.LogMaxDataPointsDelete = DevKitAspect.DefaultLogMaxDataPointsDelete; WitsmlSettings.LogMaxDataNodesGet = DevKitAspect.DefaultLogMaxDataNodesGet; WitsmlSettings.LogMaxDataNodesAdd = DevKitAspect.DefaultLogMaxDataNodesAdd; WitsmlSettings.LogMaxDataNodesUpdate = DevKitAspect.DefaultLogMaxDataNodesUpdate; WitsmlSettings.LogMaxDataNodesDelete = DevKitAspect.DefaultLogMaxDataNodesDelete; _devKit = null; }
public void TestSetUp() { DevKit = new DevKit141Aspect(TestContext); Provider = DevKit.Container.Resolve <IDatabaseProvider>(); Well1 = new Well() { Name = DevKit.Name("Mongo Well 01"), TimeZone = DevKit.TimeZone, Uid = DevKit.Uid() }; Well2 = new Well() { Name = DevKit.Name("Mongo Well 02"), TimeZone = DevKit.TimeZone }; }
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(); }
public void TestSetUp() { var url = "http://localhost/Witsml.Web/WitsmlStore.svc"; // IIS //var url = "http://localhost:5050/WitsmlStore.svc"; // TestApp DevKit = new DevKit141Aspect(TestContext, url); Context = new Witsml141Context(DevKit.ConnectionUrl); Well = new Well() { Name = DevKit.Name("Well 01"), TimeZone = DevKit.TimeZone, Uid = DevKit.Uid() }; Wellbore = new Wellbore() { UidWell = Well.Uid, NameWell = Well.Name, Name = DevKit.Name("Wellbore 01-01"), Uid = DevKit.Uid() }; Log = new Log() { UidWell = Well.Uid, NameWell = Well.Name, UidWellbore = Wellbore.Uid, NameWellbore = Wellbore.Name, Name = DevKit.Name("Log 01"), Uid = DevKit.Uid() }; DevKit.InitHeader(Log, LogIndexType.measureddepth); }
public void TestSetUp() { var url = "http://localhost/Witsml.Web/WitsmlStore.svc"; // IIS //var url = "http://localhost:5050/WitsmlStore.svc"; // TestApp _devKit = new DevKit141Aspect(TestContext, url); _well1 = new Well() { Name = _devKit.Name("Well 01"), TimeZone = _devKit.TimeZone, Uid = _devKit.Uid() }; _well2 = new Well() { Name = _devKit.Name("Well 02"), TimeZone = _devKit.TimeZone }; _wellbore1 = new Wellbore() { UidWell = _well1.Uid, NameWell = _well1.Name, Name = _devKit.Name("Wellbore 01-01"), Uid = _devKit.Uid() }; _wellbore2 = new Wellbore() { UidWell = _well1.Uid, NameWell = _well1.Name, Name = _devKit.Name("Wellbore 01-02") }; _log1 = new Log() { UidWell = _well1.Uid, NameWell = _well1.Name, UidWellbore = _wellbore1.Uid, NameWellbore = _wellbore1.Name, Name = _devKit.Name("Log 01"), Uid = _devKit.Uid() }; _log2 = new Log() { UidWell = _well1.Uid, NameWell = _well1.Name, UidWellbore = _wellbore1.Uid, NameWellbore = _wellbore1.Name, Name = _devKit.Name("Log 02") }; _devKit.InitHeader(_log1, LogIndexType.measureddepth); _devKit.InitHeader(_log2, LogIndexType.datetime); }
public void TestCleanup() { _devKit = null; }