Exemplo n.º 1
0
 public OfficerOut(IOfficerBase officerBase, IUserOfficerOut elected, IUserOfficerOut appointed)
 {
     if (elected == null)
     {
         throw new ArgumentNullException(nameof(elected), Error.NoData);
     }
     Type      = elected.Type;
     Elected   = elected;
     Appointed = appointed;
     Translate = officerBase.Translate;
     Stats     = officerBase.Stats;
     if (Appointed == null)
     {
         return;
     }
     if (Elected.Type != Appointed.Type)
     {
         throw new NotImplementedException("Elected.Type != Appointed.Type");
     }
 }
 public OfficerBase(IOfficerBase other)
 {
     Type      = other.Type;
     Translate = other.Translate;
     Stats     = other.Stats;
 }