Esempio n. 1
0
        public HomeController(IUserCreationService service, IImageService imageService, IUserQueryService queryService)
        {
            if (service == null)
            {
                throw new System.ArgumentNullException("subjectQueryService", "Subject auery service is null.");
            }
            this.service      = service;
            this.imageService = imageService;
            this.queryService = queryService;

            service.CreateUser("admin", "*****@*****.**", "admin");
            service.AddUserRole("*****@*****.**", "Администратор");
        }