Esempio n. 1
0
 public void SaveDataToGoogleSheetTest()
 {
     foreach (Enums.LotteryType lt in (Enums.LotteryType[])Enum.GetValues(typeof(Enums.LotteryType)))
     {
         var lh = new LotteryHandler(lt, "Whem", true, false);
         lh.CalculateNumbers(Enums.TypesOfDrawn.ByInterval, Enums.GenerateType.EachByEach, 1);
         Assert.True(lh.SaveDataToGoogleSheet() != null);
     }
 }
Esempio n. 2
0
        public MainWindowViewModel()
        {
            // GoNext = ReactiveCommand.CreateFromObservable(() => Router.Navigate.Execute(new LoginViewModel(this)));

            Lottery = new LotteryHandler(Enums.LotteryType.TheSixNumberDraw, "Whem", true, true);
            LotteryHandler.LotteryModelEvent += LotteryHandlerOnLotteryModelEvent;



            Lottery.CalculateNumbers(Enums.TypesOfDrawn.All, Enums.GenerateType.EachByEach, 2);
            Lottery.CalculateNumbers(Enums.TypesOfDrawn.All, Enums.GenerateType.GetTheBest, 1000);
            Lottery.CalculateNumbers(Enums.TypesOfDrawn.All, Enums.GenerateType.MostCommonSeries, 1000);


            Lottery.UseEarlierWeekPercentageForNumbersDraw(Enums.TypesOfDrawn.Calculated);
            Lottery.CalculateNumbers(Enums.TypesOfDrawn.ByDistributionBasedCurrentDraw, Enums.GenerateType.Unique, 1);

            Lottery.SaveDataToGoogleSheet();
        }