Exemplo n.º 1
0
        public void Test_SUD_RC_Owners()
        {
            RC_Owners ow  = new RC_Owners();
            OWNERS    ow1 = new OWNERS()
            {
                id_owner    = 0,
                name        = "Тест",
                abr         = "ТСТ",
                id_country  = null,
                id_ora      = null,
                id_ora_temp = null,
            };
            int res_ow1 = ow.SaveOwners(ow1);

            Test_RC_Owners(res_ow1);
            OWNERS ow2 = new OWNERS()
            {
                id_owner    = res_ow1,
                name        = "Тест1111",
                abr         = "ТСТ111",
                id_country  = null,
                id_ora      = null,
                id_ora_temp = null,
            };
            int res_ow2 = ow.SaveOwners(ow2);

            Test_RC_Owners(res_ow2);
            OWNERS ow_del = ow.DeleteOwners(res_ow2);

            WL(ow_del);
        }
Exemplo n.º 2
0
        public void Test_References_Owner()
        {
            TransferWagons.Railcars.ReferencesKIS refer = new TransferWagons.Railcars.ReferencesKIS();
            //refer.DefinitionIDOwner(53,null);
            Console.WriteLine("Новая перевозочная компания 123 = {0}", refer.DefinitionIDOwner(53, null));
            Console.WriteLine("Null = {0}", refer.DefinitionIDOwner(0, null));
            int?new_ow = refer.DefinitionIDOwner(-1, null);

            Console.WriteLine("Новый (-1) = {0}", new_ow);
            if (new_ow != null)
            {
                RC_Owners ow     = new RC_Owners();
                OWNERS    ow_del = ow.DeleteOwners((int)new_ow);
            }
        }