Пример #1
0
        public void CreateCalculationsMapData_WithoutParameters_ReturnsEmptyMapPointDataWithExpectedStyling()
        {
            // Call
            MapLineData data = RiskeerMapDataFactory.CreateCalculationsMapData();

            // Assert
            CollectionAssert.IsEmpty(data.Features);
            Assert.AreEqual("Berekeningen", data.Name);
            RiskeerMapDataFactoryTestHelper.AssertEqualStyle(data.Style, Color.MediumPurple, 2, LineDashStyle.Dash);
        }
Пример #2
0
        public void CreateFailureMechanismSectionsEndPointMapData_ReturnsEmptyMapPointDataWithExpectedStyling()
        {
            // Call
            MapPointData data = RiskeerMapDataFactory.CreateFailureMechanismSectionsEndPointMapData();

            // Assert
            CollectionAssert.IsEmpty(data.Features);
            Assert.AreEqual("Vakindeling (eindpunten)", data.Name);
            RiskeerMapDataFactoryTestHelper.AssertEqualStyle(data.Style, Color.DarkKhaki, 15, PointSymbol.Triangle);
        }
Пример #3
0
        public void CreateProbabilisticCalculationsMapData_ReturnsEmptyMapPointDataWithExpectedStyling()
        {
            // Call
            MapLineData data = PipingMapDataFactory.CreateProbabilisticCalculationsMapData();

            // Assert
            CollectionAssert.IsEmpty(data.Features);
            Assert.AreEqual("Probabilistische berekeningen", data.Name);
            RiskeerMapDataFactoryTestHelper.AssertEqualStyle(data.Style, Color.Pink, 2, LineDashStyle.Dash);
        }
Пример #4
0
        public void CreateDikeProfileMapData_ReturnsEmptyMapLineDataWithExpectedStyling()
        {
            // Call
            MapLineData data = RiskeerMapDataFactory.CreateDikeProfileMapData();

            // Assert
            CollectionAssert.IsEmpty(data.Features);
            Assert.AreEqual("Dijkprofielen", data.Name);
            RiskeerMapDataFactoryTestHelper.AssertEqualStyle(data.Style, Color.SaddleBrown, 2, LineDashStyle.Solid);
            Assert.AreEqual("Naam", data.SelectedMetaDataAttribute);
        }
Пример #5
0
        public void CreateFailureMechanismSectionsMapData_ReturnsEmptyMapLineDataWithExpectedStyling()
        {
            // Call
            MapLineData data = RiskeerMapDataFactory.CreateFailureMechanismSectionsMapData();

            // Assert
            CollectionAssert.IsEmpty(data.Features);
            Assert.AreEqual("Vakindeling", data.Name);
            RiskeerMapDataFactoryTestHelper.AssertEqualStyle(data.Style, Color.Khaki, 3, LineDashStyle.Dot);
            Assert.AreEqual("Naam", data.SelectedMetaDataAttribute);
        }
Пример #6
0
        public void CreateReferenceLineMapData_ReturnsEmptyMapLineDataWithExpectedStyling()
        {
            // Call
            MapLineData data = RiskeerMapDataFactory.CreateReferenceLineMapData();

            // Assert
            CollectionAssert.IsEmpty(data.Features);
            Assert.AreEqual("Referentielijn", data.Name);
            RiskeerMapDataFactoryTestHelper.AssertEqualStyle(data.Style, Color.FromArgb(0, 128, 255), 3, LineDashStyle.Solid);
            Assert.AreEqual("Naam", data.SelectedMetaDataAttribute);
        }
Пример #7
0
        public void CreateStochasticSoilModelsMapData_ReturnsEmptyMapLineDataWithExpectedStyling()
        {
            // Call
            MapLineData data = RiskeerMapDataFactory.CreateStochasticSoilModelsMapData();

            // Assert
            CollectionAssert.IsEmpty(data.Features);
            Assert.AreEqual("Stochastische ondergrondmodellen", data.Name);
            RiskeerMapDataFactoryTestHelper.AssertEqualStyle(data.Style, Color.FromArgb(70, Color.SaddleBrown), 5, LineDashStyle.Solid);
            Assert.AreEqual("Naam", data.SelectedMetaDataAttribute);
        }
Пример #8
0
        public void CreateSurfaceLinesMapData_ReturnsEmptyMapLineDataWithExpectedStyling()
        {
            // Call
            MapLineData data = RiskeerMapDataFactory.CreateSurfaceLinesMapData();

            // Assert
            CollectionAssert.IsEmpty(data.Features);
            Assert.AreEqual("Profielschematisaties", data.Name);
            RiskeerMapDataFactoryTestHelper.AssertEqualStyle(data.Style, Color.DarkSeaGreen, 2, LineDashStyle.Solid);
            Assert.AreEqual("Naam", data.SelectedMetaDataAttribute);
        }
Пример #9
0
        public void CreateStructuresMapData_ReturnsEmptyMapPointDataWithExpectedStyling()
        {
            // Call
            MapPointData data = RiskeerMapDataFactory.CreateStructuresMapData();

            // Assert
            CollectionAssert.IsEmpty(data.Features);
            Assert.AreEqual("Kunstwerken", data.Name);
            RiskeerMapDataFactoryTestHelper.AssertEqualStyle(data.Style, Color.DarkSeaGreen, 15, PointSymbol.Square);
            Assert.AreEqual("Naam", data.SelectedMetaDataAttribute);
        }
Пример #10
0
        public void CreateHydraulicBoundaryLocationsMapData_ReturnsEmptyMapPointDataWithExpectedStyling()
        {
            // Call
            MapPointData data = RiskeerMapDataFactory.CreateHydraulicBoundaryLocationsMapData();

            // Assert
            CollectionAssert.IsEmpty(data.Features);
            Assert.AreEqual("Hydraulische belastingen", data.Name);
            Assert.IsTrue(data.ShowLabels);
            RiskeerMapDataFactoryTestHelper.AssertEqualStyle(data.Style, Color.DarkBlue, 6, PointSymbol.Circle);
            Assert.AreEqual("Naam", data.SelectedMetaDataAttribute);
        }
Пример #11
0
        public void CreateFailureMechanismSectionAssemblyMapData_Always_ReturnsEmptyMapLineDataWithExpectedStyling()
        {
            // Call
            MapLineData data = AssemblyMapDataFactory.CreateFailureMechanismSectionAssemblyMapData();

            // Assert
            CollectionAssert.IsEmpty(data.Features);
            Assert.AreEqual("Duidingsklasse per vak", data.Name);
            Assert.AreEqual(true, data.IsVisible);
            Assert.AreEqual("Duidingsklasse", data.SelectedMetaDataAttribute);
            RiskeerMapDataFactoryTestHelper.AssertEqualStyle(data.Style, Color.Empty, 6, LineDashStyle.Solid);
            MapThemeTestHelper.AssertFailureMechanismSectionAssemblyGroupMapTheme(data.Theme);
        }