Пример #1
0
        public static AT DuplicateAT(AT
                                     at, int index)
        {
            AT newAt = new AT
                           ();

            newAt.SetName(at.GetName() + "-" + index);
            newAt.SetConstructor(at.GetConstructor());
            newAt.SetCreationDate(new System.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 System.DateTime());
            newAt.SetUser(at.GetUser());
            return(newAt);
        }
Пример #2
0
		public static AT CreateAT(NeoDatis.Odb.Test.Update.Nullobject.User
			 user)
		{
			NeoDatis.Odb.Test.Update.Nullobject.Constructor constructor = new NeoDatis.Odb.Test.Update.Nullobject.Constructor
				();
			constructor.SetCreationDate(new System.DateTime());
			constructor.SetName("neodatis");
			constructor.SetDescription("Neodatis");
			AT newAt = new AT
				();
			newAt.SetName("AT1");
			newAt.SetConstructor(constructor);
			newAt.SetCreationDate(new System.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 System.DateTime());
			newAt.SetUser(user);
			return newAt;
		}
Пример #3
0
        public static AT CreateAT(NeoDatis.Odb.Test.Update.Nullobject.User
                                  user)
        {
            NeoDatis.Odb.Test.Update.Nullobject.Constructor constructor = new NeoDatis.Odb.Test.Update.Nullobject.Constructor
                                                                              ();
            constructor.SetCreationDate(new System.DateTime());
            constructor.SetName("neodatis");
            constructor.SetDescription("Neodatis");
            AT newAt = new AT
                           ();

            newAt.SetName("AT1");
            newAt.SetConstructor(constructor);
            newAt.SetCreationDate(new System.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 System.DateTime());
            newAt.SetUser(user);
            return(newAt);
        }
Пример #4
0
		public static AT DuplicateAT(AT
			 at, int index)
		{
			AT newAt = new AT
				();
			newAt.SetName(at.GetName() + "-" + index);
			newAt.SetConstructor(at.GetConstructor());
			newAt.SetCreationDate(new System.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 System.DateTime());
			newAt.SetUser(at.GetUser());
			return newAt;
		}