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);
        }
        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);
        }
        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);
        }
Пример #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);
 }
 public ChartSeriesDefaultsBuilderTests()
 {
     chart   = ChartTestHelper.CreateChart <object>();
     builder = new ChartSeriesDefaultsBuilder <object>(chart);
 }
Пример #11
0
 public ChartBuilderTests()
 {
     chart   = ChartTestHelper.CreateChart <SalesData>();
     builder = new ChartBuilder <SalesData>(chart);
 }