public void TestSetup()
        {
            _fixture = new Fixture();

            _crossSectionPoints = _fixture.CreateMany <Framework.CrossSectionPoint>().ToList();

            _mockCrossSectionPointMapper = Substitute.For <ICrossSectionPointMapper>();
            _mockCrossSectionPointMapper.MapPoints(Arg.Any <List <ICrossSectionPoint> >())
            .Returns(_crossSectionPoints);

            _crossSectionMapper = new CrossSectionMapper(_mockCrossSectionPointMapper);

            _crossSectionSurvey = new CrossSectionSurvey
            {
                Fields = TestData.TestHelpers.CreateExpectedCrossSectionFields()
            };
        }
 public void FixtureSetup()
 {
     Fixture = new Fixture();
     CrossSectionPointMapper = new CrossSectionPointMapper();
 }
示例#3
0
 public CrossSectionMapper(ICrossSectionPointMapper crossSectionPointMapper)
 {
     _crossSectionPointMapper = crossSectionPointMapper;
 }