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));
        }
예제 #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());
        }
예제 #4
0
        private void Back_Clicked(object sender, EventArgs e)
        {
            List <Stand> liveStands = StandController.GetStands();

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