private void UpdateDischargeSectionWithVerticals(ManualGaugingDischargeSection dischargeSection, GaugingSummaryItem summaryItem) { var verticals = _verticalMapper.Map(summaryItem, dischargeSection.DeploymentMethod); foreach (var vertical in verticals) { dischargeSection.Verticals.Add(vertical); } dischargeSection.WidthValue = CalculateTotalWidth(verticals); }
private void SetupMockVerticalMapper() { _mockVerticalMapper = Substitute.For <IVerticalMapper>(); _mockVerticalMapper.Map(null, default(DeploymentMethodType)).ReturnsForAnyArgs(new List <Vertical>()); }
private void SetupVerticalMapperToReturn(IEnumerable <Vertical> verticals) { _mockVerticalMapper.Map(Arg.Any <GaugingSummaryItem>(), Arg.Any <DeploymentMethodType>()) .Returns(verticals.ToList()); }