コード例 #1
0
ファイル: Fill.cs プロジェクト: BlueInt32/bundle-report
        public Fill()
        {
            BundleLogic = new BundleLogic();
            InstantGagnantLogic = new InstantGagnantLogic();
            Date = new DateTime(2014, 05, 02);
            List<Bundle> list = BundleLogic.ListBundles();

            foreach (Bundle bundle in list)
            {
                BundleLogic.DeleteBundles();
            }
        }
コード例 #2
0
        public void Init()
        {
            Now = DateTime.Now;
            IgLogic = new InstantGagnantLogic();
            CleanUp();
            UserDataService uDal = new UserDataService();
            MainUser = uDal.GetUserByEmail("*****@*****.**");

            List<InstantGagnant> list = new List<InstantGagnant>
            {
                new InstantGagnant { FrontHtmlId = "blason-carnetcanal", Label= "second_winable", StartDateTime = new DateTime(Now.Year, Now.Month, Now.Day), Won = false},
                new InstantGagnant { FrontHtmlId = "blason-carnetcine", Label= "non_winable", StartDateTime = new DateTime(Now.Year, Now.Month, Now.Day).AddDays(1), Won = false},
                new InstantGagnant { FrontHtmlId = "blason-iphone", Label= "first_winable", StartDateTime = new DateTime(Now.Year, Now.Month, Now.Day).AddDays(-1), Won = false},
            };
            foreach (InstantGagnant ig in list)
            {
                IgLogic.AddInstantGagnant(ig);
            }
        }