protected TallyAction(TallyPopulation population) { if (population == null) { throw new ArgumentNullException(nameof(population)); } StratumCode = population.StratumCode; SampleGroupCode = population.SampleGroupCode; SpeciesCode = population.SpeciesCode; LiveDead = population.LiveDead; }
public TallyLedger(string unitCode, TallyPopulation tallyPopulation) { if (string.IsNullOrEmpty(unitCode)) { throw new ArgumentException($"'{nameof(unitCode)}' cannot be null or empty", nameof(unitCode)); } if (tallyPopulation is null) { throw new ArgumentNullException(nameof(tallyPopulation)); } CuttingUnitCode = unitCode; StratumCode = tallyPopulation.StratumCode; SampleGroupCode = tallyPopulation.SampleGroupCode; SpeciesCode = tallyPopulation.SpeciesCode; LiveDead = tallyPopulation.LiveDead; }
public TallyAction(string unitCode, int plotNumber, TallyPopulation population) : this(unitCode, population) { PlotNumber = plotNumber; }
public TallyAction(string unitCode, TallyPopulation population) : this(population) { CuttingUnitCode = unitCode; }