public void TestMethod1()
        {
            DBConnector dBc    = new DBConnector();
            string      result = dBc.connect();

            Assert.AreEqual("Done", result);
            CentralStationHandler cshd = new CentralStationHandler();

            CentralStation cs = new CentralStation();

            Assert.IsInstanceOfType(cs, typeof(object));
        }
Exemplo n.º 2
0
        private void InitalizePages()
        {
            MainPage = new CentralStation(SetPatientPage)
            {
                BayPageCall           = SetPageToBay,
                ManagementPageCall    = CallManagementPage,
                RegisterationPageCall = CallRegisterationPage
            };



            BayPage1 = new BayPage(ref bay1, GoToMainpage)
            {
                PatientPageCall = SetPatientPage
            };
            BayPage2 = new BayPage(ref bay2, GoToMainpage)
            {
                PatientPageCall = SetPatientPage
            };
            ManagementPage = new ManagementPage()
            {
                pageCall0 = GoToMainpage
            };
            RegisterationPage = new RegistrationPage()
            {
                goBackToParentPage = GoToMainpage
            };
            PatientPage         = new BedsidePage(GoToMainpage);
            PatientPage.NavBack = PatientPage.NavForward = NavigatePatientPage;

            pages.Add(0, MainPage);
            pages.Add(1, BayPage1);
            pages.Add(2, BayPage2);
            pages.Add(3, ManagementPage);
            pages.Add(4, RegisterationPage);
            pages.Add(5, PatientPage);
        }
Exemplo n.º 3
0
 public PatientRegister(CentralStation cs)
 {
     InitializeComponent();
     //here you get the reference of the centralStation
     this.centralStation = cs;
 }