コード例 #1
0
        public ChartBindingSettingsBuilderTests()
        {
            var chart = ChartTestHelper.CreateChart <SalesData>();

            settings = new ChartBindingSettings(chart);
            builder  = new ChartBindingSettingsBuilder(settings);
        }
コード例 #2
0
        public ChartBarSeriesBuilderTests()
        {
            var chart = ChartTestHelper.CreateChart <SalesData>();

            series  = new ChartBarSeries <SalesData, decimal>(chart, s => s.RepSales);
            builder = new ChartBarSeriesBuilder <SalesData>(series);
        }
コード例 #3
0
        public ChartScatterLineSeriesBuilderTests()
        {
            var chart = ChartTestHelper.CreateChart <XYData>();

            series  = new ChartScatterLineSeries <XYData, float>(chart, s => s.X, s => s.Y);
            builder = new ChartScatterLineSeriesBuilder <XYData>(series);
        }
コード例 #4
0
        public ChartNumericAxisBuilderTests()
        {
            var chart = ChartTestHelper.CreateChart <SalesData>();

            axis    = new ChartNumericAxis <SalesData>(chart);
            builder = new ChartNumericAxisBuilder(axis);
        }
コード例 #5
0
        public ChartCategoryAxisBuilderTests()
        {
            var chart = ChartTestHelper.CreateChart <SalesData>();

            axis = new ChartCategoryAxis <SalesData>(chart);
            chart.CategoryAxis = axis;
            builder            = new ChartCategoryAxisBuilder <SalesData>(chart);
        }
コード例 #6
0
        public ChartCategoryAxisBuilderTests()
        {
            var chart = ChartTestHelper.CreateChart <SalesData>();

            axis = new ChartCategoryAxis <SalesData>(chart);
            chart.CategoryAxis = axis;
            chart.DataSource   = SalesDataBuilder.GetCollection();
            builder            = new ChartCategoryAxisBuilder <SalesData>(chart);
        }
コード例 #7
0
        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";
        }
コード例 #8
0
 public ChartSeriesFactoryTests()
 {
     chart   = ChartTestHelper.CreateChart <SalesData>();
     factory = new ChartSeriesFactory <SalesData>(chart);
 }
コード例 #9
0
 public ChartValueAxisFactoryTests()
 {
     chart   = ChartTestHelper.CreateChart <SalesData>();
     factory = new ChartValueAxisFactory <SalesData>(chart, chart.ValueAxes);
 }
コード例 #10
0
 public ChartSeriesDefaultsBuilderTests()
 {
     chart   = ChartTestHelper.CreateChart <object>();
     builder = new ChartSeriesDefaultsBuilder <object>(chart);
 }
コード例 #11
0
 public ChartBuilderTests()
 {
     chart   = ChartTestHelper.CreateChart <SalesData>();
     builder = new ChartBuilder <SalesData>(chart);
 }