Ejemplo n.º 1
0
        public Pianta( string nomeBotanico, string nomeComune=null, double area = 0)
        {
            if (string.IsNullOrWhiteSpace(nomeBotanico) || string.IsNullOrWhiteSpace(nomeComune))
                throw new ArgumentNullException("Nome botanico o comune non accettabile");

            Guid = Guid.NewGuid();
            _data = PiantaFactory.GetDatiPianta(nomeBotanico, nomeComune);
        }
Ejemplo n.º 2
0
        public Pianta(string nomeBotanico, string nomeComune = null, double area = 0)
        {
            if (string.IsNullOrWhiteSpace(nomeBotanico) || string.IsNullOrWhiteSpace(nomeComune))
            {
                throw new ArgumentNullException("Nome botanico o comune non accettabile");
            }

            Guid  = Guid.NewGuid();
            _data = PiantaFactory.GetDatiPianta(nomeBotanico, nomeComune);
        }