Esempio n. 1
0
 public static AT DuplicateAT(AT at, int index)
 {
     var newAt = new AT();
     newAt.SetName(at.GetName() + "-" + index);
     newAt.SetConstructor(at.GetConstructor());
     newAt.SetCreationDate(new DateTime());
     newAt.SetDeleted(false);
     newAt.SetIpAddress(at.GetIpAddress());
     newAt.SetPhysicalAddress(at.GetPhysicalAddress());
     newAt.SetPort(at.GetPort());
     newAt.SetStatus(true);
     newAt.SetType(at.GetType());
     newAt.SetUpdateDate(new DateTime());
     newAt.SetUser(at.GetUser());
     return newAt;
 }
Esempio n. 2
0
        public static AT DuplicateAT(AT at, int index)
        {
            var newAt = new AT();

            newAt.SetName(at.GetName() + "-" + index);
            newAt.SetConstructor(at.GetConstructor());
            newAt.SetCreationDate(new DateTime());
            newAt.SetDeleted(false);
            newAt.SetIpAddress(at.GetIpAddress());
            newAt.SetPhysicalAddress(at.GetPhysicalAddress());
            newAt.SetPort(at.GetPort());
            newAt.SetStatus(true);
            newAt.SetType(at.GetType());
            newAt.SetUpdateDate(new DateTime());
            newAt.SetUser(at.GetUser());
            return(newAt);
        }
Esempio n. 3
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;
 }
Esempio n. 4
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);
        }