Example #1
0
        public void FlyopgaveNummerIsNullOrEmpty()
        {
            string   Flyopgavenummer = "";
            DateTime datetime1       = DateTime.Now;

            Assert.ThrowsException <NullOrEmptyException>((() => _handler.SearchForFlyopgave(Flyopgavenummer, datetime1)));
        }
Example #2
0
        public async void SearchAsync()
        {
            DateTime tempt = DateTime.Parse(Date.ToString());

            try
            {
                _handler.SearchForFlyopgave(FlyopgaveNr, tempt);
            }
            catch (NullOrEmptyException ex)
            {
                await new MessageDialog(ex.Message).ShowAsync();
            }
            catch (InfoWrongException ex)
            {
                await new MessageDialog(ex.Message).ShowAsync();
            }
            catch (DateWrongException ex)
            {
                await new MessageDialog(ex.Message).ShowAsync();
            }
        }