public ProjectsController(ICustomerService CustomerService, IProjectService ProjectService, IDiaryService DiaryService, IInAccountService InAccountService)
 {
     _CustomerService = CustomerService;
     _ProjectService = ProjectService;
     _DiaryService = DiaryService;
     _InAccountService = InAccountService;
 }
Example #2
0
 public DiaryController(IDiaryService diaryService, ISiteService siteService, ITravelService travelService, IRouteService routeService)
 {
     this._diaryService  = diaryService;
     this._siteService   = siteService;
     this._travelService = travelService;
     this._routeService  = routeService;
 }
Example #3
0
 public DiaryController(
     IMapper mapper
     , IDiaryService diaryService
     , IUserService userService)
 {
     _mapper       = mapper;
     _diaryService = diaryService;
 }
Example #4
0
 public ProfileController(IAccountService accountService,
                          IDiaryService diaryService,
                          IFollowerService followerService
                          )
 {
     _accountService  = accountService;
     _diaryService    = diaryService;
     _followerService = followerService;
 }
 public HomeController(IFollowerService followerService,
                       IDiaryService diaryService,
                       IAccountService accountService,
                       IReviewService reviewService
                       )
 {
     _followerService = followerService;
     _diaryService    = diaryService;
     _accountService  = accountService;
     _reviewService   = reviewService;
 }
Example #6
0
 public DiaryController(IDiaryService diaryService,
                        IRepository <Diary> diaryRepository,
                        ILogger <DiaryController> logger,
                        IIdentityService identityService,
                        IProfileService profileService)
 {
     _diaryRepository = diaryRepository ?? throw new ArgumentNullException(nameof(diaryRepository));
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
     _diaryService    = diaryService ?? throw new ArgumentNullException(nameof(diaryService));
     _identityService = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _profileService  = profileService ?? throw new ArgumentNullException(nameof(profileService));
 }
Example #7
0
        public DiaryServiceTest()
        {
            var pathOption = new PathOption
            {
                Default = new Dictionary <PathType, string>
                {
                    [PathType.DiaryNameListFile]     = "/db/diary/diary-name-list.json",
                    [PathType.DiaryListPath]         = "/db/diary/diary-info",
                    [PathType.DiaryContentsRootPath] = "/diary",
                },
            };

            var fsOption = new FileSystemOption
            {
                MainFileSystem = new MainFileSystemOption
                {
                    UseBackup      = false,
                    MainFileSystem = FileSystemType.InMemory,
                },
            };

            var diaryOption = new DiaryOption
            {
                FileSystemSelect = new FileSystemSelectOption
                {
                    UseMainFileSystem = true,
                },
            };

            var fileSystemService = new FileSystemService(fsOption, pathOption, null, null);

            _diaryService = new DiaryService(diaryOption, null, fileSystemService);

            _user = new AppUser("Test", "1234")
            {
                Email    = "*****@*****.**",
                UserName = "******",
            };
            _diary = new DiaryInfo
            {
                DiaryName = "testdiary",
                Id        = _user.Id,
                IsSecret  = false,
                Owner     = _user.Email,
                Writers   = new List <string>(),
                Viewers   = new List <string>(),
            };
        }
Example #8
0
 public DefaultServiceManager(ICache cache, ILogService logService,
                              IEncryptionProvider encryptionProvider,
                              IDiaryService diaryService,
                              IDiaryCommentService diaryCommentService,
                              IMovieCommentService movieCommentService,
                              IAccountService accountService)
 {
     this._cache               = cache;
     this._autoBox             = null;
     this._logService          = logService;
     this._encryptionProvider  = encryptionProvider;
     this._diaryService        = diaryService;
     this._diaryCommentService = diaryCommentService;
     this._movieCommentService = movieCommentService;
     this._accountService      = accountService;
 }
Example #9
0
        public ActionResult Add(int diaryid)
        {
            IDiaryService  diaryService   = _DiaryManager.GetDiaryService(diaryid);
            UserDiaryModel userDiaryModel = new UserDiaryModel
            {
                Content     = diaryService.Content,
                CreateTime  = diaryService.CreateTime,
                Title       = diaryService.Title,
                UserDiaryId = diaryService.DiaryId,
                UserName    = diaryService.UserName,
                UserId      = diaryService.UserId
            };

            ViewBag.DiaryId = diaryid;
            return(View(userDiaryModel));
        }
Example #10
0
        static void Main()
        {
            XDocument settingsFromFile      = XDocument.Load(@".\classFactorySettings.xml");
            var       executingAssemblyName = System.Reflection.Assembly.GetExecutingAssembly().FullName;

            Global.classFactory = new ClassFactory(settingsFromFile, executingAssemblyName);

            IDiaryRepository repo       = Global.classFactory.Create <IDiaryRepository>(@".\repository.xml");
            IDiaryConnector  connector  = Global.classFactory.Create <IDiaryConnector>();
            IDiaryController controller = Global.classFactory.Create <IDiaryController>();
            IDiaryService    service    = Global.classFactory.Create <IDiaryService>();


            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
Example #11
0
 public DiaryController(IDiaryService diaryService)
 {
     this.diaryService = diaryService;
 }
Example #12
0
 public DeleteModel(IDiaryService diaryService)
 {
     DiaryService = diaryService;
 }
Example #13
0
 public ExploreController(IAccountService accountService,
                          IDiaryService diaryService)
 {
     _accountService = accountService;
     _diaryService   = diaryService;
 }
Example #14
0
 public FileController(IDiaryService diaryService, IConfiguration config)
 {
     this._diaryService  = diaryService;
     this._rootPath      = Path.Combine(Environment.CurrentDirectory, config.GetValue <string>("StoredFileFolder"));
     this._fileSizeLimit = config.GetValue <long>("fileSizeLimit");
 }
 public ServiceProviderManager(IDiaryService diaryService, ITodoService todoService)
 {
     _todoService  = todoService;
     _diaryService = diaryService;
 }
Example #16
0
 public EventsController(IDiaryService service, IRepository <string, Car> repoMockObject)
 {
     _service = service;
 }
Example #17
0
 public DiaryControllers(IDiaryService diaryService, IMapper mapper)
 {
     this.diaryService = diaryService ?? throw new ArgumentNullException(nameof(diaryService));
     this.diaryService = diaryService;
     this.mapper       = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Example #18
0
 public DiaryController(IDiaryService diaryService, IPwdManService pwdManService)
 {
     DiaryService  = diaryService;
     PwdManService = pwdManService;
 }
Example #19
0
 public DiaryController(IContentService contentService, IDiaryService diaryService, IPaginationService paginationService)
 {
     this.contentService    = contentService;
     this.diaryService      = diaryService;
     this.paginationService = paginationService;
 }
Example #20
0
 public DiaryController(IDiaryService diaryService)
 {
     _diaryService = diaryService ?? throw new NullReferenceException(nameof(diaryService));
 }
Example #21
0
 public IndexModel(IDiaryService diaryService)
 {
     DiaryService = diaryService;
 }
 public BloggerController(IDiaryService diaryService)
 {
     this._diaryService = diaryService;
 }
Example #23
0
 public DetailsModel(IDiaryService diaryService)
 {
     DiaryService = diaryService;
 }
 public DiaryController(ILogger logger, IDiaryService diaryService)
     : base(logger)
 {
     this.diaryService = diaryService;
 }
Example #25
0
 public AdminsController(IAdminService adminService, IDiaryService diaryService)
 {
     this.AdminService = adminService;
     this.DiaryService = diaryService;
 }
Example #26
0
 public DiariesController(IDiaryService diaryService)
 {
     _diaryService = diaryService;
 }
Example #27
0
 public IndexModel(ILogger <IndexModel> logger, IDiaryService diaryService)
 {
     _logger      = logger;
     DiaryService = diaryService;
 }
Example #28
0
 public EditModel(IDiaryService diaryService)
 {
     DiaryService = diaryService;
 }
Example #29
0
 public CreateDiaryNoteWizardModel(IDiaryService diaryService)
 {
     DiaryService = diaryService;
 }
Example #30
0
 public CreateModel(IDiaryService diaryService)
 {
     DiaryService = diaryService;
 }
 public DiariesController(IWorkTypeService WorkTypeService,IDiaryService DiaryService,IProjectService ProjectService)
 {
     _WorkTypeService = WorkTypeService;
     _DiaryService = DiaryService;
     _ProjectService = ProjectService;
 }