public ChartBindingSettingsBuilderTests() { var chart = ChartTestHelper.CreateChart <SalesData>(); settings = new ChartBindingSettings(chart); builder = new ChartBindingSettingsBuilder(settings); }
public ChartBarSeriesBuilderTests() { var chart = ChartTestHelper.CreateChart <SalesData>(); series = new ChartBarSeries <SalesData, decimal>(chart, s => s.RepSales); builder = new ChartBarSeriesBuilder <SalesData>(series); }
public ChartScatterLineSeriesBuilderTests() { var chart = ChartTestHelper.CreateChart <XYData>(); series = new ChartScatterLineSeries <XYData, float>(chart, s => s.X, s => s.Y); builder = new ChartScatterLineSeriesBuilder <XYData>(series); }
public ChartNumericAxisBuilderTests() { var chart = ChartTestHelper.CreateChart <SalesData>(); axis = new ChartNumericAxis <SalesData>(chart); builder = new ChartNumericAxisBuilder(axis); }
public ChartCategoryAxisBuilderTests() { var chart = ChartTestHelper.CreateChart <SalesData>(); axis = new ChartCategoryAxis <SalesData>(chart); chart.CategoryAxis = axis; builder = new ChartCategoryAxisBuilder <SalesData>(chart); }
public ChartCategoryAxisBuilderTests() { var chart = ChartTestHelper.CreateChart <SalesData>(); axis = new ChartCategoryAxis <SalesData>(chart); chart.CategoryAxis = axis; chart.DataSource = SalesDataBuilder.GetCollection(); builder = new ChartCategoryAxisBuilder <SalesData>(chart); }
public ChartSerializationTests() { textWriter = new Mock <TextWriter>(); textWriter.Setup(tw => tw.Write(It.IsAny <string>())).Callback <string>(s => output += s); var urlGeneratorMock = new Mock <IUrlGenerator>(); urlGeneratorMock.Setup(g => g.Generate(It.IsAny <RequestContext>(), It.IsAny <INavigatable>())) .Returns <RequestContext, INavigatable>( (context, navigatable) => navigatable.Url ?? navigatable.ControllerName + "/" + navigatable.ActionName ); chart = ChartTestHelper.CreateChart <SalesData>(urlGeneratorMock.Object); chart.Name = "Chart"; }
public ChartSeriesFactoryTests() { chart = ChartTestHelper.CreateChart <SalesData>(); factory = new ChartSeriesFactory <SalesData>(chart); }
public ChartValueAxisFactoryTests() { chart = ChartTestHelper.CreateChart <SalesData>(); factory = new ChartValueAxisFactory <SalesData>(chart, chart.ValueAxes); }
public ChartSeriesDefaultsBuilderTests() { chart = ChartTestHelper.CreateChart <object>(); builder = new ChartSeriesDefaultsBuilder <object>(chart); }
public ChartBuilderTests() { chart = ChartTestHelper.CreateChart <SalesData>(); builder = new ChartBuilder <SalesData>(chart); }