Ejemplo n.º 1
0
 public void TearDown()
 {
     myContext   = null;
     myProvider  = null;
     myLhsSeries = null;
     myRhsSeries = null;
 }
Ejemplo n.º 2
0
        public void SetUp()
        {
            myContext = new Mock <IFigureProviderContext> {
                DefaultValue = DefaultValue.Mock
            };
            myContext.Setup(x => x.GetSeries(LhsSeriesName)).Returns(() => myLhsSeries);
            myContext.Setup(x => x.GetSeries(RhsSeriesName)).Returns(() => myRhsSeries);

            myProvider = new GenericJoinProvider("dummy", LhsSeriesName, RhsSeriesName, (lhs, rhs) => lhs + rhs);
        }