コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PluginsController" /> class.
        /// </summary>
        /// <param name="fileSystem">The file system.</param>
        /// <param name="pluginsService">The plugins service.</param>
        /// <param name="nugetService">The nuget service.</param>
        /// <param name="visualStudioService">The visual studio service.</param>
        /// <param name="readMeService">The read me service.</param>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="messageBoxService">The message box service.</param>
        /// <param name="dialogService">The dialog service.</param>
        /// <param name="formsService">The forms service.</param>
        /// <param name="translator">The translator.</param>
        public PluginsController(
            IFileSystem fileSystem,
            IPluginsService pluginsService,
            INugetService nugetService,
            IVisualStudioService visualStudioService,
            IReadMeService readMeService,
            ISettingsService settingsService,
            IMessageBoxService messageBoxService,
            IDialogService dialogService,
            IFormsService formsService,
            ITranslator<Tuple<DirectoryInfoBase, DirectoryInfoBase>, Plugins> translator)
            : base(visualStudioService, 
            readMeService, 
            settingsService, 
            messageBoxService,
            dialogService,
            formsService)
        {
            TraceService.WriteLine("PluginsController::Constructor");

            this.fileSystem = fileSystem;
            this.pluginsService = pluginsService;
            this.nugetService = nugetService;
            this.translator = translator;
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BaseController" /> class.
        /// </summary>
        /// <param name="visualStudioService">The visual studio service.</param>
        /// <param name="readMeService">The read me service.</param>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="messageBoxService">The message box service.</param>
        /// <param name="dialogService">The dialog service.</param>
        /// <param name="formsService">The forms service.</param>
        protected BaseController(
            IVisualStudioService visualStudioService,
            IReadMeService readMeService,
            ISettingsService settingsService,
            IMessageBoxService messageBoxService,
            IDialogService dialogService,
            IFormsService formsService)
        {
            //// init the tracing service first!
            TraceService.Initialize(
                settingsService.LogToTrace,
                false, //// log to console.
                settingsService.LogToFile,
                settingsService.LogFilePath,
                settingsService.DisplayErrors);

            TraceService.WriteLine("BaseController::Constructor");

            this.VisualStudioService = visualStudioService;
            this.ReadMeService = readMeService;
            this.SettingsService = settingsService;
            this.MessageBoxService = messageBoxService;
            this.DialogService = dialogService;
            this.FormsService = formsService;
        }
コード例 #3
0
 public StudentsService(IUnitOfWork db, IUsersService usersService, IParentsService parentsService, IFormsService formsService, StudentToStudentDTO toDTO, IEmailsService emailsService)
 {
     this.db             = db;
     this.usersService   = usersService;
     this.parentsService = parentsService;
     this.formsService   = formsService;
     this.toDTO          = toDTO;
     this.emailsService  = emailsService;
 }
コード例 #4
0
 public FormsToTeacherSubjectsService(IUnitOfWork db, ITeachersService teachersService, ISubjectsService subjectsService, ITeachersToSubjectsService teachersToSubjectsService, IFormsService formsService, IEmailsService emailsService, FTSToDTO toDTO)
 {
     this.db = db;
     this.teachersService           = teachersService;
     this.subjectsService           = subjectsService;
     this.teachersToSubjectsService = teachersToSubjectsService;
     this.formsService  = formsService;
     this.emailsService = emailsService;
     this.toDTO         = toDTO;
 }
コード例 #5
0
 public BookController(
     IBooksService booksService,
     IFormsService formsService,
     IWebHostEnvironment hostingEnvironment,
     IErrorHandler errorHandler)
 {
     _bookService        = booksService;
     _formsService       = formsService;
     _hostingEnvironment = hostingEnvironment;
     _errorHandler       = errorHandler;
 }
コード例 #6
0
ファイル: CoachsService.cs プロジェクト: Feldrise/BuildUp
        public CoachsService(IMongoSettings mongoSettings, IFormsService formsService, IFilesService filesService, IPdfService pdfService, INotificationService notificationService)
        {
            var mongoClient = new MongoClient(mongoSettings.ConnectionString);
            var database    = mongoClient.GetDatabase(mongoSettings.DatabaseName);

            _users         = database.GetCollection <User>("users");
            _coachs        = database.GetCollection <Coach>("coachs");
            _builders      = database.GetCollection <Builder>("builders");
            _coachRequests = database.GetCollection <CoachRequest>("coach_requests");

            _formsService        = formsService;
            _filesService        = filesService;
            _pdfService          = pdfService;
            _notificationService = notificationService;
        }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApplicationController" /> class.
 /// </summary>
 /// <param name="visualStudioService">The visual studio service.</param>
 /// <param name="readMeService">The read me service.</param>
 /// <param name="settingsService">The settings service.</param>
 /// <param name="messageBoxService">The message box service.</param>
 /// <param name="dialogService">The dialog service.</param>
 /// <param name="formsService">The forms service.</param>
 public ApplicationController(
     IVisualStudioService visualStudioService,
     IReadMeService readMeService,
     ISettingsService settingsService,
     IMessageBoxService messageBoxService,
     IDialogService dialogService,
     IFormsService formsService)
     : base(visualStudioService, 
     readMeService, 
     settingsService, 
     messageBoxService,
     dialogService,
     formsService)
 {
     TraceService.WriteLine("ApplicationController::Constructor");
 }
コード例 #8
0
ファイル: When_logging_in.cs プロジェクト: brocksamson/Evil
        public void Arrange()
        {
            _login = new LoginModel {EmailAddress = _emailAddress, Password = _password};
            _mother = new ObjectMother();
            _account = _mother.GetAccountByEmailAddress(_emailAddress, _password);
            _currentPlayer = new Player
            {
                Account = _account,
                Name = "Player1"
            };

            _accountRepository = new InMemoryRepository<Account>(_account);
            _playerRepository = new InMemoryRepository<Player>(_currentPlayer);

            _formsService = MockRepository.GenerateMock<IFormsService>();

            _controller = new AccountController(_accountRepository, _playerRepository, _formsService);
        }
コード例 #9
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ConfigurationController" /> class.
        /// </summary>
        /// <param name="configurationService">The configuration service.</param>
        /// <param name="visualStudioService">The visual studio service.</param>
        /// <param name="readMeService">The read me service.</param>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="messageBoxService">The message box service.</param>
        /// <param name="dialogService">The dialog service.</param>
        /// <param name="formsService">The forms service.</param>
        public ConfigurationController(
            IConfigurationService configurationService,
            IVisualStudioService visualStudioService,
            IReadMeService readMeService,
            ISettingsService settingsService,
            IMessageBoxService messageBoxService,
            IDialogService dialogService,
            IFormsService formsService)
            : base(visualStudioService, 
            readMeService, 
            settingsService, 
            messageBoxService,
            dialogService,
            formsService)
        {
            TraceService.WriteLine("ConfigurationController::Constructor");

            this.configurationService = configurationService;
        }
コード例 #10
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ViewModelViewsController" /> class.
        /// </summary>
        /// <param name="viewModelViewsService">The view model views service.</param>
        /// <param name="visualStudioService">The visual studio service.</param>
        /// <param name="readMeService">The read me service.</param>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="messageBoxService">The message box service.</param>
        /// <param name="dialogService">The dialog service.</param>
        /// <param name="formsService">The forms service.</param>
        public ViewModelViewsController(
            IViewModelViewsService viewModelViewsService,
            IVisualStudioService visualStudioService,
            IReadMeService readMeService,
            ISettingsService settingsService,
            IMessageBoxService messageBoxService,
            IDialogService dialogService,
            IFormsService formsService)
            : base(visualStudioService, 
            readMeService, 
            settingsService, 
            messageBoxService,
            dialogService,
            formsService)
        {
            TraceService.WriteLine("ViewModelAndViewsController::Constructor");

            this.viewModelViewsService = viewModelViewsService;
        }
コード例 #11
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ServicesController" /> class.
        /// </summary>
        /// <param name="servicesService">The services service.</param>
        /// <param name="nugetService">The nuget service.</param>
        /// <param name="visualStudioService">The visual studio service.</param>
        /// <param name="readMeService">The read me service.</param>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="messageBoxService">The message box service.</param>
        /// <param name="dialogService">The dialog service.</param>
        /// <param name="formsService">The forms service.</param>
        public ServicesController(
            IServicesService servicesService,
            INugetService nugetService,
            IVisualStudioService visualStudioService,
            IReadMeService readMeService,
            ISettingsService settingsService,
            IMessageBoxService messageBoxService,
            IDialogService dialogService,
            IFormsService formsService)
            : base(visualStudioService, 
            readMeService, 
            settingsService, 
            messageBoxService,
            dialogService,
            formsService)
        {
            TraceService.WriteLine("ServicesController::Constructor");

            this.servicesService = servicesService;
            this.nugetService = nugetService;
        }
コード例 #12
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ProjectsController" /> class.
        /// </summary>
        /// <param name="projectsService">The projects service.</param>
        /// <param name="nugetService">The nuget service.</param>
        /// <param name="visualStudioService">The visual studio service.</param>
        /// <param name="readMeService">The read me service.</param>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="messageBoxService">The message box service.</param>
        /// <param name="dialogService">The dialog service.</param>
        /// <param name="formsService">The forms service.</param>
        /// <param name="fileSystem">The file system.</param>
        public ProjectsController(
            IProjectsService projectsService,
            INugetService nugetService,
            IVisualStudioService visualStudioService,
            IReadMeService readMeService,
            ISettingsService settingsService,
            IMessageBoxService messageBoxService,
            IDialogService dialogService,
            IFormsService formsService,
            IFileSystem fileSystem)
            : base(visualStudioService, 
            readMeService, 
            settingsService, 
            messageBoxService,
            dialogService,
            formsService)
        {
            TraceService.WriteLine("ProjectsController::Constructor");

            this.projectsService = projectsService;
            this.nugetService = nugetService;
            this.fileSystem = fileSystem;
        }
コード例 #13
0
 public FormsController(IFormsService formsService)
 {
     _formsService = formsService;
 }
コード例 #14
0
 public FormsController(IFormsService formsService, FormToFormDTO toDTO)
 {
     this.formsService = formsService;
     this.toDTO        = toDTO;
 }
コード例 #15
0
ファイル: AccountController.cs プロジェクト: brocksamson/Evil
 public AccountController(IRepository<Account> accountRepository, IRepository<Player> playerRepository, IFormsService formsService)
 {
     _accountRepository = accountRepository;
     _playerRepository = playerRepository;
     _formsService = formsService;
 }
コード例 #16
0
 public void SetUp()
 {
     var mother = new ObjectMother();
     _model = mother.GetValidAccount();
     _existingAccount = mother.GetAccountByEmailAddress(_model.EmailAddress);
     _newModel = mother.GetValidAccount();
     _newModel.EmailAddress = "*****@*****.**";
     _accountRepository = new InMemoryRepository<Account>(_existingAccount);
     _formsService = MockRepository.GenerateMock<IFormsService>();
     _playerRepository = MockRepository.GenerateMock<IRepository<Player>>();
     _controller = new AccountController(_accountRepository, _playerRepository, _formsService);
 }
コード例 #17
0
 public FormController(IFormsService formsService)
 {
     _sqlFormService = formsService;
 }