コード例 #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
ファイル: UnitOfWorkMem.cs プロジェクト: jpawlikow/WingsApp
 public UnitOfWorkMem()
 {
     context             = new InMemoryContext();
     UserEventRepository = new UserEventRepositoryEFMemory(context);
 }