Exemplo n.º 1
0
 public SearchService(UserStatusService statusService, ImageCache cache,
                      MetaDataService metadataService, UserConfigService configService)
 {
     _configService   = configService;
     _statusService   = statusService;
     _imageCache      = cache;
     _metadataService = metadataService;
 }
Exemplo n.º 2
0
 public BasketService(UserStatusService statusService,
                      DownloadService downloadService,
                      ImageCache imageCache)
 {
     _statusService   = statusService;
     _imageCache      = imageCache;
     _downloadService = downloadService;
 }
        public void Setup()
        {
            mockUserStatusRepo    = new Mock <IUserStatusRepository>();
            mockUserStatusService = new Mock <IUserStatusService>();
            fixture = new Fixture();
            fixture.Behaviors.OfType <ThrowingRecursionBehavior>().ToList()
            .ForEach(b => fixture.Behaviors.Remove(b));
            fixture.Behaviors.Add(new OmitOnRecursionBehavior());

            userStatusService = new UserStatusService(mockUserStatusRepo.Object);
        }
Exemplo n.º 4
0
 public UserService(AuthenticationStateProvider authenticationStateProvider,
                    RoleManager <ApplicationRole> roleManager,
                    UserManager <AppIdentityUser> userManager,
                    UserStatusService statusService,
                    ConfigService configService,
                    IAuthorizationService authService)
 {
     _authenticationStateProvider = authenticationStateProvider;
     _userManager   = userManager;
     _roleManager   = roleManager;
     _authService   = authService;
     _statusService = statusService;
     _configService = configService;
 }
 public AuthenticationService(FitnessCenterDbContext context)
 {
     _context           = context;
     _userStatusService = new UserStatusService(_context);
 }
Exemplo n.º 6
0
    // TODO: Remember last selected image and use it for range selections etc?

    public SelectionService(UserStatusService statusService)
    {
        _statusService = statusService;
    }