public void ItShouldValidateWhenPositions() { var forecastPlan = new ForecastPlan <int>(); forecastPlan.AddPosition(new Mock <IPosition>().Object); Assert.IsTrue(forecastPlan.Validate()); }
public void ItShouldFetchSchemeForEachPosition() { var forecastPlan = new ForecastPlan <int>(); var position = new Mock <IPosition>(); position.Setup(x => x.HCType).Returns(new HCTypeDto { Code = "FTE" }); forecastPlan.AddPosition(position.Object); }