Пример #1
0
        public MainWindowViewModel(IProfileLogic logic)
        {
            this.logic = logic;

            ProfileCollection = new ObservableCollection <Profile>();

            DataLoadingService dls = new DataLoadingService();

            dls.FetchData().ForEach(x => this.logic.AddExistingProfile(ProfileCollection, x));

            AddCommand    = new RelayCommand(() => this.AddNew());
            RemoveCommand = new RelayCommand(() => this.Remove());
        }
Пример #2
0
 public HomeController
 (
     ILoginLogic loginLogic,
     IFeedRepository feedRepoistory,
     IProfileLogic profileLogic,
     IClaimsLogic claimsLogic,
     IUserRepository userRepository
 )
 {
     _loginLogic     = loginLogic;
     _feedRepoistory = feedRepoistory;
     _profileLogic   = profileLogic;
     _claimsLogic    = claimsLogic;
     _userRepository = userRepository;
 }
 public ProfileController(UserManager <User> userManager, IProfileLogic profileLogic, IUserLogic userLogic)
 {
     _userManager  = userManager;
     _profileLogic = profileLogic;
     _userLogic    = userLogic;
 }
Пример #4
0
 public ProfilesController(IProfileLogic profileLogic)
 {
     _profileLogic = profileLogic;
 }
Пример #5
0
 public MockProfileController()
 {
     _profileLogic = new MockProfileLogic();
     _controller   = new ProfilesController(_profileLogic);
 }
 public AccessController(IAuthService authService, IProfileLogic profileLogic, IServiceHelper helper)
 {
     _authService  = authService;
     _profileLogic = profileLogic;
     _helper       = helper;
 }
 public ProfileController(IProfileLogic profileLogic, IServiceHelper helper)
 {
     _profileLogic = profileLogic;
     _helper       = helper;
 }