private void EnergyIsNullOrEmpty_ReturnsEmptyString(string energy)
        {
            wasteType.EnergyInformation = energy;

            var result = formatter.GetEnergyEfficiencyString(wasteType);

            Assert.Equal(string.Empty, result);
        }
        public WasteCompositionViewModel(WasteType wasteType, WasteCompositionFormatter formatter)
        {
            WasteName = formatter.GetWasteName(wasteType);
            Energy = formatter.GetEnergyEfficiencyString(wasteType);
            OptionalInformation = formatter.GetOptionalInformationTitle(wasteType);

            HasAnnex = wasteType.HasAnnex;

            SetWasteTypeDescription(wasteType);

            ChemicalComposition = wasteType.ChemicalCompositionType;
            Compositions = formatter.GetWasteCompositionPercentages(wasteType);
            AdditionalInfos =
                formatter.GetAdditionalInformationChemicalCompositionPercentages(wasteType.WasteAdditionalInformation);

            SetMergeDescriptionText();
        }
예제 #3
0
        public WasteCompositionViewModel(WasteType wasteType, WasteCompositionFormatter formatter)
        {
            WasteName           = formatter.GetWasteName(wasteType);
            Energy              = formatter.GetEnergyEfficiencyString(wasteType);
            OptionalInformation = formatter.GetOptionalInformationTitle(wasteType);

            HasAnnex = wasteType.HasAnnex;

            SetWasteTypeDescription(wasteType);

            ChemicalComposition = wasteType.ChemicalCompositionType;
            Compositions        = formatter.GetWasteCompositionPercentages(wasteType);
            AdditionalInfos     =
                formatter.GetAdditionalInformationChemicalCompositionPercentages(wasteType.WasteAdditionalInformation);

            SetMergeDescriptionText();
        }