protected static void Establish_context() { client = new HttpClient(); entity = CurveData.CreateBasicEntity(); content = HttpContentExtensions.CreateDataContract(new MDM.Contracts.Curve()); startVersion = CurrentEntityVersion(); }
protected static void Establish_context() { entity = CurveData.CreateBasicEntity(); var notAMapping = new Contracts.Curve(); content = HttpContentExtensions.CreateDataContract(notAMapping); client = new HttpClient(); }
protected static void Establish_context() { entity1 = CurveData.CreateBasicEntity(); entity2 = CurveData.CreateBasicEntity(); client = new HttpClient(); var search = new Search().IsMutliPage().MaxPageSize(1); CurveData.CreateSearch(search, entity1, entity2); content = HttpContentExtensions.CreateDataContract(search); }
protected static void Establish_context() { entity = CurveData.CreateBasicEntity(); mapping = new Mapping { SystemName = "Endur", Identifier = Guid.NewGuid().ToString(), SourceSystemOriginated = false, DefaultReverseInd = false, StartDate = Script.baseDate, EndDate = Script.baseDate.AddDays(2) }; content = HttpContentExtensions.CreateDataContract(mapping); client = new HttpClient(); }
protected static void Establish_context() { curve = CurveData.CreateBasicEntity(); }
protected static void Because_of() { entity = CurveData.CreateBasicEntity(); client.DefaultHeaders.Add("If-Match", entity.Version.ToString()); response = client.Post(ServiceUrl["Curve"] + entity.Id, content); }