예제 #1
0
 public AuthRepository(IOptions <AppSettings> app)
 {
     _connection = new SqlConnection(@"Data Source=FORMA-VDI1109\TFTIC;Initial Catalog=TicketOnline;User ID=sa;Password=tftic@2012;");
     _connection.Open();
     _userRepository = new UserRepository();
     _appSettings    = app.Value;
 }
예제 #2
0
        public IdentityUnitOfWork(

            FriendsAndTravelDbContext db,
            SignInManager <User> signInManager,
            UserManager <User> userManager,
            RoleManager <IdentityRole> roleManager,
            ICategoryRepository categoryRepository,
            IUserCategoryRepository userCategoryRepository,
            IUserProfileRepository UserProfileRepository,
            IUserEventRepository userEventRepository,
            IEventRepository eventRepository,
            IEventCategoryRepository eventCategoryRepository,
            IPhotoRepository photoRepository,
            IEventPhotoRepository eventPhotoRepository,
            ILocationRepository locationRepository
            )
        {
            Database                   = db;
            UserManager                = userManager;
            RoleManager                = roleManager;
            SignInManager              = signInManager;
            UserCategoryRepository     = userCategoryRepository;
            CategoryRepository         = categoryRepository;
            this.userProfileRepository = UserProfileRepository;
            UserEventRepository        = userEventRepository;
            EventCategoryRepository    = eventCategoryRepository;
            EventRepository            = eventRepository;
            PhotoRepository            = photoRepository;
            EventPhotoRepository       = eventPhotoRepository;
            LocationRepository         = locationRepository;
        }
예제 #3
0
 public HistogramController(IHistogramRepository repository, IUserEventRepository userEventRepository, IGenerate<Histogram> generateHistogram, IFeatureRepository featureRepository, IBackgroundJobClient backgroundJobClient)
 {
     this.repository = repository;
     this.userEventRepository = userEventRepository;
     this.generateHistogram = generateHistogram;
     this.featureRepository = featureRepository;
     this.backgroundJobClient = backgroundJobClient;
 }
예제 #4
0
 public OrganizationEventHandler(
     IOrganizationChangeResolver arg0,
     IUserEventRepository arg1
     )
 {
     field0 = arg0;
     field1 = arg1;
 }
예제 #5
0
 public UserEventHandler(
     IUserChangeResolver arg0,
     IUserEventRepository arg1
     )
 {
     field0 = arg0;
     field1 = arg1;
 }
예제 #6
0
 public TimeSeriesController(ApiDataContext context, ITimeSeriesRepository timeSeriesRepository, IUserEventRepository userEventRepository, IGenerate<TimeSeries> generateTimeSeries, IFeatureRepository featureRepository, IBackgroundJobClient backgroundJobClient)
 {
     this.context = context;
     this.timeSeriesRepository = timeSeriesRepository;
     this.userEventRepository = userEventRepository;
     this.generateTimeSeries = generateTimeSeries;
     this.featureRepository = featureRepository;
     this.backgroundJobClient = backgroundJobClient;
 }
예제 #7
0
        //private UserWindow uw = new UserWindow();

        public UserViewModel(User entity) : base(entity)
        {
            _eventRequester = new UserRequester("http://localhost:51049/api/");
            LastName        = Entity.LastName;
            FirstName       = Entity.FirstName;
            ScreenName      = Entity.ScreenName;
            Email           = Entity.Email;
            //Passwd = Entity.Passwd;
            Address  = Entity.Address;
            IsActive = Entity.IsActive;
            IsAdmin  = Entity.IsAdmin;
        }
예제 #8
0
        //private EventWindow ew = new EventWindow();

        public EventViewModel(Event entity) : base(entity)
        {
            _eventRequester = new EventRequester("http://localhost:51049/api/");
            Name            = Entity.Name;
            Type            = Entity.Type;
            Organizer       = Entity.Organizer;
            Date            = Entity.Date;
            Location        = Entity.Location;
            Tickets         = Entity.Tickets;
            Price           = Entity.Price;
            Description     = Entity.Description;
        }
예제 #9
0
 public EventController()
 {
     _eventRepository = new EventRepository();
 }
예제 #10
0
 public UserController(ApiTokenRequester apiTokenRequester, IUserEventRepository <User> userRequester, ICryptoRSA cryptoService, ISessionManager sessionManager) : base(sessionManager)
 {
     _cryptoService     = cryptoService;
     _apiTokenRequester = apiTokenRequester;
     _userRequester     = userRequester;
 }
예제 #11
0
 public AuthController(IUserEventRepository <User> userRepository, IAuthRepository <RegisterForm, LoginForm, User> authRepository, ISessionManager sessionManager, ICryptoRSA cryptoService) : base(sessionManager)
 {
     _authRepository = authRepository;
     _cryptoService  = cryptoService;
     _userRepository = userRepository;
 }
예제 #12
0
 public UserEventService(IUserEventRepository userEventRepository, IMapper mapper)
 {
     _userEventRepository = userEventRepository;
     _mapper = mapper;
 }
예제 #13
0
 public UserController(ICryptoRSA cryptoService)
 {
     _cryptoService      = cryptoService;
     _userRepository     = new UserRepository();
     _passwordRepository = new UserPasswordRepository();
 }
예제 #14
0
 public EventListViewModel()
 {
     _eventRequester = new EventRequester("http://localhost:51049/api/");
     //Messenger<EventViewModel>.Instance.Register("DeleteEvent", OnDeleteEvent); // voir *
     Messenger <DeleteMessage <EventViewModel> > .Instance.Register(OnDeleteEvent);
 }
예제 #15
0
 public WorkbenchController(IUserEventRepository repository, IParseUserEvents userEventParser)
 {
     this.repository = repository;
     this.userEventParser = userEventParser;
 }
예제 #16
0
 public UserEventsService(IUnitOfWork unitOfWork, IUserEventRepository userEventRepository)
 {
     _unitOfWork = unitOfWork;
     _userEventRepository = userEventRepository;
 }
예제 #17
0
 public EventController(ApiTokenRequester apiTokenRequester, IUserEventRepository <Event> eventRequester, ApiRequester apiRequester, ISessionManager sessionManager) : base(sessionManager)
 {
     _eventRequester    = eventRequester;
     _apiRequester      = apiRequester;
     _apiTokenRequester = apiTokenRequester;
 }
예제 #18
0
 public UserListViewModel()
 {
     _userRequester = new UserRequester("http://localhost:51049/api/");
     //Messenger<UserViewModel>.Instance.Register("DeleteUser", OnDeleteUser); // voir *
     Messenger <DeleteMessage <UserViewModel> > .Instance.Register(OnDeleteUser);
 }
예제 #19
0
 public UserScopesController(IUserEventRepository repository)
 {
     this.repository = repository;
 }
예제 #20
0
 public EventReader(
     IUserEventRepository arg0
     )
 {
     field0 = arg0;
 }
예제 #21
0
 public UnitOfWorkMem()
 {
     context             = new InMemoryContext();
     UserEventRepository = new UserEventRepositoryEFMemory(context);
 }