private void Mail_Clicked(object sender, EventArgs e)
        {
            List <Stand> liveStands = StandController.GetStands();

            List <Party> parties       = this.GetAdvice();
            var          sortedParties = parties.OrderBy(party => party.adviced_percentage).ToList();

            sortedParties.Reverse();

            Navigation.PushAsync(new MailView(sortedParties));
        }
Ejemplo n.º 2
0
 public StandControllerTest()
 {
     standRepoMock = new Mock <IStandRepository>();
     controller    = new StandController(standRepoMock.Object);
 }
        private void Reset_Clicked(object sender, EventArgs e)
        {
            List <Stand> liveStands = StandController.GetStands();

            Navigation.PushAsync(new MainPage());
        }
Ejemplo n.º 4
0
        private void Back_Clicked(object sender, EventArgs e)
        {
            List <Stand> liveStands = StandController.GetStands();

            Navigation.PopAsync();
        }
Ejemplo n.º 5
0
 private void InitilizeData()
 {
     liveStands         = StandController.GetStands();
     PartiesStandPoints = StandPointsController.GetStandPoints();
 }
Ejemplo n.º 6
0
 public UnitTest(Context context)
 {
     _standController = new StandController(context);
 }