Beispiel #1
0
        private static void testDeleteAdvertisement()
        {
            Advertisement        advertisement = new Advertisement();
            List <Advertisement> list          = SqlAdvertisement.GetAdvertisements(1);

            foreach (var item in list)
            {
                SqlAdvertisement.DeleteAdvertisement(item, 13);
            }
        }
Beispiel #2
0
        private static void testGetAdvertisement()
        {
            Advertisement        advertisement = new Advertisement();
            List <Advertisement> list          = SqlAdvertisement.GetAdvertisements(1);

            foreach (var item in list)
            {
                SqlAdvertisement.GetAdvertisement(item.DateFrom, item.DateTo, item.CourtID);
            }
        }
Beispiel #3
0
        private static void testAddModyfyAdvertisement()
        {
            Advertisement advertisement = new Advertisement();

            advertisement.CourtID  = 102;
            advertisement.DateFrom = DateTime.Now;
            advertisement.DateTo   = DateTime.Now.AddDays(10);
            advertisement.UserID   = 1;
            advertisement.Name     = "Reklama 1";
            advertisement.Payment  = 0;

            SqlAdvertisement.AddModifyAdvertisement(advertisement);
        }