public void timeline_should_be_created_in_date_mode() { _timeline = new Timeline { Title = "WebdriverTitleDayMode" }; TimelineHelper.AddTimelineWithDateMode(_timeline); _newTimeline = TimelineHelper.GetLastTimeline(); Assert.AreEqual(_timeline.Title, _newTimeline.Title); }
public void timeline_should_be_created_in_date_mode() { Logger.Log("Bug: https://github.com/alterm4nn/ChronoZoom/issues/528", LogType.Debug); _timeline = new Timeline { Title = "WebdriverTitleDayMode" }; TimelineHelper.AddTimelineWithDayMode(_timeline); _newTimeline = TimelineHelper.GetLastTimeline(); Assert.AreEqual(_timeline.Title, _newTimeline.Title); }
public void DeleteTimelineByApi(Timeline timeline) { timeline.Timeline_ID = new Guid(CosmosGuidTemplate); DataContractJsonSerializer timelineSerializer = new DataContractJsonSerializer(typeof(Timeline)); HttpWebRequest request = MakeDeleteRequest(TimelineApiServiceUrl); Stream requestStream = request.GetRequestStream(); timelineSerializer.WriteObject(requestStream, timeline); request.GetResponse(); }
public void CreateTimelineByApi(Timeline timeline) { timeline.Timeline_ID = new Guid(CosmosGuidTemplate); DataContractJsonSerializer timelineSerializer = new DataContractJsonSerializer(typeof(Timeline)); DataContractJsonSerializer guidSerializer = new DataContractJsonSerializer(typeof(Guid)); HttpWebRequest request = MakePutRequest(TimelineApiServiceUrl); Stream requestStream = request.GetRequestStream(); timelineSerializer.WriteObject(requestStream, timeline); WebResponse response = request.GetResponse(); Stream responseStream = response.GetResponseStream(); if (responseStream == null) { throw new NullReferenceException("responseStream is null"); } timeline.Id = (Guid)guidSerializer.ReadObject(responseStream); }
public void CreateTimelineByApi(Timeline timeline) { timeline.Timeline_ID = new Guid(CosmosGuidTemplate); DataContractJsonSerializer timelineSerializer = new DataContractJsonSerializer(typeof(Timeline)); DataContractJsonSerializer guidSerializer = new DataContractJsonSerializer(typeof(Guid)); HttpWebRequest request = MakePutRequest(TimelineApiServiceUrl); Stream requestStream = request.GetRequestStream(); timelineSerializer.WriteObject(requestStream, timeline); WebResponse response = request.GetResponse(); Stream responseStream = response.GetResponseStream(); if (responseStream == null) { throw new NullReferenceException("responseStream is null"); } timeline.Id = (Guid)guidSerializer.ReadObject(responseStream); }
public void timeline_should_be_created_in_date_mode() { _timeline = new Timeline { Title = "WebdriverTitleDayMode" }; TimelineHelper.AddTimelineWithDateMode(_timeline); _newTimeline = TimelineHelper.GetLastTimeline(); Assert.AreEqual(_timeline.Title, _newTimeline.Title); }
public void timeline_should_be_created_in_date_mode() { Logger.Log("Bug: https://github.com/alterm4nn/ChronoZoom/issues/528", LogType.Debug); _timeline = new Timeline { Title = "WebdriverTitleDayMode" }; TimelineHelper.AddTimelineWithDayMode(_timeline); _newTimeline = TimelineHelper.GetLastTimeline(); Assert.AreEqual(_timeline.Title, _newTimeline.Title); }
public void DeleteTimelineByApi(Timeline timeline) { timeline.Timeline_ID = new Guid(CosmosGuidTemplate); DataContractJsonSerializer timelineSerializer = new DataContractJsonSerializer(typeof(Timeline)); HttpWebRequest request = MakeDeleteRequest(TimelineApiServiceUrl); Stream requestStream = request.GetRequestStream(); timelineSerializer.WriteObject(requestStream, timeline); request.GetResponse(); }