public VehicleCatService(IMessageDialog dialog, ILoggedInUserService l_user) { _dialog = dialog; // _table_name = _table_name.ToDbSchemaTable(); m_logged_user = l_user.GetLoggedInUser(); }
public TagService( IMongoClient client, IBaseRepository <Domain.Entities.Tag> repository, ILoggedInUserService loggedInUserService, IDatabaseContext context) : base(client, repository, loggedInUserService, context) { this.SetCollectionName("Tags"); }
public BaseService( IMongoClient client, IBaseRepository <T> repository, ILoggedInUserService loggedInUserService, IDatabaseContext context) { this._database = client.GetDatabase(context.DatabaseName); this._loggedInUserService = loggedInUserService; this._repository = repository; ////this._repository.SetCollection(this._database.GetCollection<T>(nameof(T))); }
public UnitOfWork(BuildingDbContext context, ILoggedInUserService loggedInUserService) { _context = context; Projects = new ProjectRepository(_context); Suppliess = new SuppliesRepository(_context); Buildings = new BuildingRepository(_context); BuildingOuts = new BuildingOutRepository(_context); Components = new ComponentRepository(_context); OutbuildingType = new OutbuildingsTypeRepository(_context); Attachments = new AttachmentRepository(_context); AttachmentContents = new AttachmentContentRepository(_context); _loggedInUserService = loggedInUserService; }
private static void CheckUserInfo() { ILoggedInUserService userService = LoggedInUserServiceFactory.ServiceInstance; CloudServicesUserInfo userInfo = userService.LoggedInUserInfo; if (userInfo != null) { Debug.WriteLine(userInfo.UserNickName); } else { MessageBox.Show(@"Null User Info"); } }
public FitbitViewModel( IGetFitWebService getFitWebService, ICredentialRetrieverService credentialRetrieverService, ILoggedInUserService loggedInUserService) : base(UserDeviceSelections.Fitbit) { getFitWebService.CheckIfNull ("getFitWebService"); credentialRetrieverService.CheckIfNull ("credentialRetrieverService"); loggedInUserService.CheckIfNull ("loggedInUserService"); this.getFitWebService = getFitWebService; this.credentialRetrieverService = credentialRetrieverService; this.loggedInUserService = loggedInUserService; }
public UserLoginViewModel(IGetFitWebService getFitWebService, ICredentialRetrieverService credentialRetrieverService, ILoggedInUserService loggedInUserService) { getFitWebService.CheckIfNull("getFitWebService"); credentialRetrieverService.CheckIfNull("credentialRetrieverService"); loggedInUserService.CheckIfNull("loggedInUserService"); this.credentialRetrieverService = credentialRetrieverService; this.getFitWebService = getFitWebService; this.loggedInUserService = loggedInUserService; this.DoAfterSuccessfulLoginCommand = new MvxCommand<MobileServiceUser> (this.ExecuteDoAfterSuccessfulLogin); }
public UserDeviceManagerViewModel ( ICredentialRetrieverService credentialRetrieverService, ILoggedInUserService loggedInUserService, IGetFitWebService getFitWebService) { credentialRetrieverService.CheckIfNull("credentialRetrieverService"); loggedInUserService.CheckIfNull("loggedInUserService"); getFitWebService.CheckIfNull("getFitWebService"); this.credentialRetrieverService = credentialRetrieverService; this.loggedInUserService = loggedInUserService; this.getFitWebService = getFitWebService; this.AddUserDeviceCommand = new MvxCommand (() => this.ShowViewModel<AddUserDeviceViewModel>()); this.DeleteUserDeviceCommand = new MvxCommand (this.DeleteExecute, this.CanDelete); this.UserDevices = new ObservableCollection<UserDevice> (); this.UserDevices.Add (new NullUserDevice ()); }
public AddUserDeviceViewModel( ILoggedInUserService loggedInUserService, IMobileServiceClient mobileServiceClient) { loggedInUserService.CheckIfNull("loggedInUserService"); this.DeviceSelections = new ObservableCollection<string>(); this.AddCommand = new MvxCommand(this.AddExecute, this.CanAdd); // setup key actions this.keyActions = new Dictionary<string, Action> { { UserDeviceSelections.Garmin, () => this.ShowViewModel<GarminViewModel>() }, { UserDeviceSelections.Fitbit, () => this.ShowViewModel<FitbitViewModel>() }, }; this.DeviceSelections = new ObservableCollection<string> { UserDeviceSelections.Garmin, UserDeviceSelections.Fitbit }; }
public GarminViewModel( IGetFitWebService getFitWebService, ICredentialRetrieverService credentialRetrieverService, ILoggedInUserService loggedInUserService) : base(UserDeviceSelections.Garmin) { getFitWebService.CheckIfNull("getFitWebService"); loggedInUserService.CheckIfNull("loggedInUserService"); credentialRetrieverService.CheckIfNull("credentialRetrieverService"); this.getFitWebService = getFitWebService; this.loggedInUserService = loggedInUserService; this.credentialRetrieverService = credentialRetrieverService; this.newModel = new UserDevice { UserId = loggedInUserService.LoggedInUser.UserId, DeviceSelection = UserDeviceSelections.Garmin, }; this.AddCommand = new MvxCommand(this.AddExecute, this.CanAdd); }
public ExpenseClaimDbContext(DbContextOptions <ExpenseClaimDbContext> options, ILoggedInUserService loggedInUserService) : base(options) { _loggedInUserService = loggedInUserService; }
public PersonalDbContext(DbContextOptions <PersonalDbContext> options, ILoggedInUserService loggedInUserService) : base(options) { _loggedInUserService = loggedInUserService; }
public AppStart(ILoggedInUserService userService) { _userService = userService; }
public ExpenseTypeService(IMessageDialog dialog, ILoggedInUserService l_user) { _dialog = dialog; m_logged_user = l_user.GetLoggedInUser(); }
public FuelStationService(IMessageDialog dialog, ILoggedInUserService l_user) { _dialog = dialog; m_logged_user = l_user.GetLoggedInUser(); }
public VehicleOwnerService(IMessageDialog dialog, ILoggedInUserService l_user) { _dialog = dialog; m_logged_user = l_user.GetLoggedInUser(); }
public SightseeingDbContext(DbContextOptions <SightseeingDbContext> options, ILoggedInUserService loggedInUserService) : base(options) { _loggedInUserService = loggedInUserService; }
public AppDbContext(DbContextOptions <AppDbContext> options, ILoggedInUserService loggedInUserService) : base(options) { _loggedInUserService = loggedInUserService; }
public KakaoTicketDbContext(DbContextOptions <KakaoTicketDbContext> options, ILoggedInUserService loggedInUserService) : base(options) { _loggedInUserService = loggedInUserService; }
public TicketManagementDbContext(DbContextOptions <TicketManagementDbContext> options, ILoggedInUserService loggedInUserService) : base(options) { _loggedInUserService = loggedInUserService; }
public CreditorService(IMessageDialog dialog, ILoggedInUserService l_user) { _dialog = dialog; m_logged_user = l_user.GetLoggedInUser(); }
public HomeController(IMediator mediator, ILoggedInUserService loggedInUserService, ILogger <HomeController> logger) { _mediator = mediator; _loggedInUserService = loggedInUserService; _logger = logger; }
public GloboTicketDbContext(DbContextOptions <GloboTicketDbContext> options, ILoggedInUserService loggedInUserService) : base(options) { this.loggedInUserService = loggedInUserService; }