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; }
public virtual void SetConstructor(Constructor constructor) { this.constructor = constructor; }