public void AddTitleWithText_NormalData_Added() { // Act _dataCollector.AddTitle("Foo"); // Assert Assert.AreEqual("Foo", _dataCollector["Title"]); }
/// <summary> /// Processes this response /// </summary> public override ControllerResponseResult Process() { DataCollector.Add(TemplateFactory.Load(TemplateFileName)); if (!string.IsNullOrEmpty(Title)) { DataCollector.AddTitle(Title); } return(ControllerResponseResult.Default); }
public override ControllerResponseResult Process() { Context.Response.StatusCode = StatusCode; DataCollector.Add(Data); if (!string.IsNullOrEmpty(Title)) DataCollector.AddTitle(Title); return ControllerResponseResult.Default; }
/// <summary> /// Processes this response /// </summary> public override ControllerResponseResult Process() { DataCollector.Add(Data); if (!string.IsNullOrEmpty(Title)) { DataCollector.AddTitle(Title); } return(ControllerResponseResult.Default); }
/// <summary> /// Processes this response /// </summary> public override Task <ControllerResponseResult> Process() { Context.Response.StatusCode = StatusCode; DataCollector.Add(TemplateFactory.Load(TemplateFileName)); if (!string.IsNullOrEmpty(Title)) { DataCollector.AddTitle(Title); } return(Task.FromResult(ControllerResponseResult.Default)); }
/// <summary> /// Processes this response /// </summary> public override ControllerResponseResult Process() { Context.Response.StatusCode = StatusCode; DataCollector.Add(TemplateFactory.Load(TemplateFileName).Model(Model).Set()); if (!string.IsNullOrEmpty(Title)) { DataCollector.AddTitle(Title); } return(ControllerResponseResult.Default); }