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()); }
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; }
public ProfilesController(IProfileLogic profileLogic) { _profileLogic = profileLogic; }
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; }