Exemplo n.º 1
0
 public static AT CreateAT(User user)
 {
     var constructor = new Constructor();
     constructor.SetCreationDate(new DateTime());
     constructor.SetName("ndatabase");
     constructor.SetDescription("NDatabase");
     var newAt = new AT();
     newAt.SetName("AT1");
     newAt.SetConstructor(constructor);
     newAt.SetCreationDate(new DateTime());
     newAt.SetDeleted(false);
     newAt.SetIpAddress("1.1.1.1");
     newAt.SetPhysicalAddress("A01");
     newAt.SetPort(4000);
     newAt.SetStatus(true);
     newAt.SetType("Type1");
     newAt.SetUpdateDate(new DateTime());
     newAt.SetUser(user);
     return newAt;
 }
Exemplo n.º 2
0
 public virtual void SetConstructor(Constructor constructor)
 {
     this.constructor = constructor;
 }
Exemplo n.º 3
0
Arquivo: PMV.cs Projeto: danfma/NDB
 public virtual void SetConstructor(Constructor constructor)
 {
     this.constructor = constructor;
 }