public void ItShouldValidateWhenPositions() { var forecastPlan = new ForecastPlan <int>(); forecastPlan.AddPosition(new Mock <IPosition>().Object); Assert.IsTrue(forecastPlan.Validate()); }
public void ItShouldNotValidateWhenNoPositions() { var forecastPlan = new ForecastPlan <int>(); Assert.Throws(typeof(ForecastPlanException), () => forecastPlan.Validate()); }