예제 #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);
            }
        }
예제 #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);
            }
        }
예제 #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);
        }