示例#1
0
 public Parking()
 {
     InitializeComponent();
     parkingSystem = new ParkingSystem(ParkingSystemInitializer.GetUnitOfWorkToInject(Enviroment.DEVELOP));
     PopulateComboBox(this.comboBox1, parkingSystem.CountriesInMemory);
     DoNavigation(NavigationOptions.MAIN_MENU);
 }
示例#2
0
        public void Initialize()
        {
            system                = new ParkingSystem(ParkingSystemInitializer.GetUnitOfWorkToInject(Enviroment.TEST));
            unitOfWork            = system.UnitOfWork;
            system.CurrentCountry = system.CountriesInMemory.First(c => c.Name == "URUGUAY");
            notification          = new Notification();
            account               = new Account("098960505");
            account.AddMoneyToBalance("10000");
            string smsMessage = $"ABC 1234 120 {DateTime.Now.AddMinutes(10).ToString(("HH:mm"))}";

            smsValidator = new UySmsValidator();
            sms          = smsValidator.GetInitializedSms(smsMessage);
            sms.SetHourBounds(DateTime.Now, DateTime.Now.AddHours(8));
            purchase = new Purchase(sms, account);
        }