Esempio n. 1
0
        public LoginPageModel(IRestInterface restInterface)
        {
            _restInterface = restInterface;

            HomePage = new Command(GoToHomePage);

            SignUp = new Command(GoToSingUpPage);
        }
Esempio n. 2
0
        public EventsPageModel(IRestInterface restInterface)
        {
            Activity = new ObservableCollection <Event>();

            _restInterface = restInterface;

            LoadEvents();
        }
Esempio n. 3
0
 public TeamPageModel(IRestInterface restInterface)
 {
     _restInterface = restInterface;
     AddTeam();
 }
Esempio n. 4
0
        public SignUpPageModel(IRestInterface restInterface)
        {
            CreateAccount = new Command(GoToLoginPage);

            _restInterface = restInterface;
        }
Esempio n. 5
0
 public RestfulClient(IRestInterface restInterface, ILogger <RestfulClient> logger)
 {
     _restInterface = restInterface;
     _logger        = logger;
 }
Esempio n. 6
0
 public void SetUp()
 {
     restClient = Substitute.For <IRestClient>();
     adapter    = new RestAdapter(restClient);
     client     = adapter.Create <IRestInterface>();
 }
Esempio n. 7
0
 public void SetUp()
 {
     restClient = Substitute.For<IRestClient>();
     adapter = new RestAdapter(restClient);
     client = adapter.Create<IRestInterface>();
 }