protected PurchasedMovie(MovieOffer movieOffer) { MovieId = movieOffer.MovieId; Purchased = DateProviderFactory.DateProvider.Now(); }
public static LifelongPurchasedMovie Lifelong(MovieOffer movieOffer) => new LifelongPurchasedMovie(movieOffer);
public static TwoDaysPurchasedMovie TwoDays(MovieOffer movieOffer) => new TwoDaysPurchasedMovie(movieOffer);
public TwoDaysPurchasedMovie(MovieOffer movieOffer) : base(movieOffer) { Price = movieOffer.Price.TwoDays; Expiration = DateProviderFactory.DateProvider.Now().AddDays(2); }