Esempio n. 1
0
        void CreateNewReleasesCategory()
        {
            MovieCategory category = new MovieCategory(session, Properties.Resources.NewReleasesPriceMovieCategoryName);

            category.GetPrice(MovieItemFormat.DVD).SetDaysRentPrice(0, 2.5M);
            category.GetPrice(MovieItemFormat.DVD).SetDaysRentPrice(1, 3.75M);
            category.GetPrice(MovieItemFormat.DVD).SetDaysRentPrice(2, 3.0M);
            category.GetPrice(MovieItemFormat.BlueRay).SetDaysRentPrice(0, 4.25M);
            category.GetPrice(MovieItemFormat.BlueRay).SetDaysRentPrice(1, 5.25M);
            category.GetPrice(MovieItemFormat.BlueRay).SetDaysRentPrice(2, 4.75M);
            category.GetPrice(MovieItemFormat.VideoCD).SetDaysRentPrice(0, 1.25M);
            category.GetPrice(MovieItemFormat.VideoCD).SetDaysRentPrice(1, 1.75M);
        }
Esempio n. 2
0
        void CreateCutPriceCategory()
        {
            MovieCategory category = new MovieCategory(session, Properties.Resources.CutPriceMovieCategoryName);

            category.GetPrice(MovieItemFormat.DVD).SetDaysRentPrice(0, 0.7M);
            category.GetPrice(MovieItemFormat.DVD).SetDaysRentPrice(1, 1.0M);
            category.GetPrice(MovieItemFormat.DVD).SetDaysRentPrice(2, 0.9M);
            category.GetPrice(MovieItemFormat.DVD).SetDaysRentPrice(3, 0.8M);
            category.GetPrice(MovieItemFormat.BlueRay).SetDaysRentPrice(0, 1.5M);
            category.GetPrice(MovieItemFormat.BlueRay).SetDaysRentPrice(1, 2.0M);
            category.GetPrice(MovieItemFormat.BlueRay).SetDaysRentPrice(2, 1.9M);
            category.GetPrice(MovieItemFormat.BlueRay).SetDaysRentPrice(3, 1.8M);
            category.GetPrice(MovieItemFormat.BlueRay).SetDaysRentPrice(4, 1.7M);
            category.GetPrice(MovieItemFormat.VideoCD).SetDaysRentPrice(0, 0.5M);
            category.GetPrice(MovieItemFormat.VideoCD).SetDaysRentPrice(1, 0.7M);
            category.GetPrice(MovieItemFormat.VideoCD).SetDaysRentPrice(2, 0.6M);
        }
Esempio n. 3
0
        void SetDefaultCategoryPrices()
        {
            MovieCategory category = MovieCategory.GetDefaultCategory(session);

            category.GetPrice(MovieItemFormat.DVD).SetDaysRentPrice(0, 1.5M);
            category.GetPrice(MovieItemFormat.DVD).SetDaysRentPrice(1, 2.25M);
            category.GetPrice(MovieItemFormat.DVD).SetDaysRentPrice(2, 2.0M);
            category.GetPrice(MovieItemFormat.DVD).SetDaysRentPrice(3, 1.75M);
            category.GetPrice(MovieItemFormat.BlueRay).SetDaysRentPrice(0, 3.0M);
            category.GetPrice(MovieItemFormat.BlueRay).SetDaysRentPrice(1, 4.0M);
            category.GetPrice(MovieItemFormat.BlueRay).SetDaysRentPrice(2, 3.75M);
            category.GetPrice(MovieItemFormat.BlueRay).SetDaysRentPrice(3, 3.5M);
            category.GetPrice(MovieItemFormat.BlueRay).SetDaysRentPrice(4, 3.25M);
            category.GetPrice(MovieItemFormat.VideoCD).SetDaysRentPrice(0, 1.0M);
            category.GetPrice(MovieItemFormat.VideoCD).SetDaysRentPrice(1, 1.5M);
            category.GetPrice(MovieItemFormat.VideoCD).SetDaysRentPrice(2, 1.25M);
            sellingPrices.Add(MovieItemFormat.DVD, 12.5M);
            sellingPrices.Add(MovieItemFormat.BlueRay, 22.5M);
            sellingPrices.Add(MovieItemFormat.VideoCD, 7.5M);
        }