/// <summary> /// 电影 /// </summary> public MovieController(IMovieManager MovieManager, IMovie_CityManager Movie_CityManager, IMovie_CinemasManager Movie_CinemasManager, DbContext DbContext) { this.MovieManager = MovieManager; this.Movie_CityManager = Movie_CityManager; this.Movie_CinemasManager = Movie_CinemasManager; this.DbContext = DbContext; }
public MovieManagerController(IMovieManager appService , MyMoviesDbContext dbContext ) { _appService = appService ?? throw new ArgumentNullException(nameof(appService)); _dbContext = dbContext; }
public Menu(IMovieManager movieManager, IShowManager showManager, IVideoManager videoManager, IDatabaseMovieManager databaseMovieManager) { _movieManager = movieManager; _showManager = showManager; _videoManager = videoManager; _databaseMovieManager = databaseMovieManager; DisplayMenu(); }
public IdentityContext(string connectionName) { db = new ApplicationContext(connectionName); userManager = new ApplicationUserManager(new UserStore <ApplicationUser>(db)); roleManager = new ApplicationRoleManager(new RoleStore <ApplicationRole>(db)); userProfileManager = new UserProfileManager(db); movieManager = new MovieManager(db); }
protected override void OnInitialize() { base.OnInitialize(); if (Manager.Items.ContainsKey("MovieManager")) { movieManager = Manager.Items["MovieManager"] as IMovieManager; } }
public MovieViewModel() { _movieManager = SimpleIoc.Default.GetInstance <IMovieManager>(); AddNewItemCommand = new RelayCommand(AddNewItem); MarkAsSeenCommand = new RelayCommand <MovieItemModel>(MarkAsSeen); EditItemCommand = new RelayCommand <MovieItemModel>(EditItem); ShowAll = false; ReloadDataSource(); Messenger.Default.Register <NavigateMessage>(this, Navigate); }
public DataMigrationService(IMovieManager movieManager , IGenreManager gm , ILanguageManager languageManager , IPeopleManager peopleManager) { if (movieManager == null) { throw new ApplicationException("Movie Manager not initialized"); } _movieManager = movieManager; _genreManager = gm; _languageManager = languageManager; _peopleManager = peopleManager; Mapper.Initialize(x => x.AddProfile <DomainMapper>()); }
public MoviesController(IMovieManager movManager) { movieManager = movManager; }
public ValuesController(IMovieManager movieManager) { _movieManager = movieManager; }
public MoviesController(IMovieManager movieManager) { _movieManager = movieManager ?? throw new ArgumentNullException(nameof(movieManager)); }
public MoviesController(IHttpContextAccessor httpContextAccessor, IMovieManager movieManager) : base(httpContextAccessor) { _movieManager = movieManager; _movieManager.SetContextInfo(GetUserContext(HttpContextAccessor)); }
public MoviesController(ILogger <MoviesController> logger, IMovieManager movieManager) { _logger = logger; _movieManager = movieManager; }
public MovieController(IMovieManager manager, IMovieVMBuilder builder) { this.manager = manager; this.builder = builder; }
public static void ClassInitialize(TestContext context) { StartMongo(); _movieManager = new MovieManager(); }
/// <summary> /// 电影更新城市和影院定时计划 /// </summary> /// <param name="Logger">日志类接口</param> /// <param name="MovieManager">电影类接口</param> public UpdateCitysAndCinemasJobTrigger(ILogger <BaseJobTrigger> Logger, IMovieManager MovieManager) : base(TimeSpan.Zero, TimeSpan.FromMinutes(60), new UpdateCitysAndCinemasJobExcutor(MovieManager), Logger) { }
public HomeController(IMovieManager movieManager) { _movieManager = movieManager; }
public MovieController(IAccountManager accountManager, IMovieManager movieManager) { _accountManager = accountManager; _movieManager = movieManager; }
public UpdateCitysAndCinemasJobExcutor(IMovieManager MovieManager) { this.MovieManager = MovieManager; }