Inheritance: DatePeriodVisualization
        public override void SetUp()
        {
            base.SetUp();
            visualization = new CodeSizeToDate();
            visualization.DatePeriod = DatePeriod.DAY;
            graphStub = MockRepository.GenerateStub<IGraphView>();
            graphStub.Stub(x => x.ShowLineWithPoints(null, null, null))
                .IgnoreArguments()
                .Callback(new Func<string,double[],double[],bool>((l,x,y) =>
                {
                    this.x = x;
                    this.y = y;

                    return true;
                }));
        }
Example #2
0
        public override void SetUp()
        {
            base.SetUp();
            visualization            = new CodeSizeToDate();
            visualization.DatePeriod = DatePeriod.DAY;
            graphStub = MockRepository.GenerateStub <IGraphView>();
            graphStub.Stub(x => x.ShowLineWithPoints(null, null, null))
            .IgnoreArguments()
            .Callback(new Func <string, double[], double[], bool>((l, x, y) =>
            {
                this.x = x;
                this.y = y;

                return(true);
            }));
        }