Esempio n. 1
0
 private void CreateDevService()
 {
     if (_devService == null)
     {
         var userId = Guid.Parse(User.Identity.GetUserId());
         _devService = new DevService(userId);
     }
 }
Esempio n. 2
0
 public Application(ICeoService ceoService, IPmService pmService, IDevService devService, IDsnrService dsnrService, IStService stService)
 {
     _ceoService  = ceoService;
     _pmService   = pmService;
     _devService  = devService;
     _dsnrService = dsnrService;
     _stService   = stService;
 }
        public DevProfilesViewModel(IDevService devService)
        {
            IsRunning      = true;
            TwitterEnabled = true;
            OnPropertyChanged("IsRunning");
            _devService         = devService;
            OnCardSwiped        = new Command(SetDevDetails);
            HandleProfileTapped = new Command(ExpandCollapseProfile);
            HandleScrollTapped  = new Command(ExpandCollapseProfile);
            OnTwitterTapped     = new Command(OpenTwitter);

            Profiles = new ObservableCollection <DevProfile>();

            OverlayLayoutBounds        = new Rectangle(1, 1, 1, 0.2);
            _profileExpanded           = false;
            OnSwipedUpdatePropertyList = new string[] { "Title", "DevFirstName", "DevTitle", "DevBio", "TwitterEnabled" };
            _ = Initialise();
        }
Esempio n. 4
0
 public DevController(IDevService mockService)
 {
     _devService = mockService;
 }
Esempio n. 5
0
 public DevController()
 {
     service = new DevService();
 }
 public HomeController(IDevService _service)
 {
     service = _service;
 }