public ConsoleView() { _noOfPatients = 0; Console.SetWindowSize(150, 60); Console.SetWindowPosition(0, 0); Console.BufferHeight = Int16.MaxValue - 1; _controller = new Controller(); }
public void GenerateIteration3PatientsTest() { Controller cont = new Controller(); int visitCount = 0; cont.createIteration3Patients(100, 10, 4, new List<GenerationRule>() { new GenerationRule(100, 20) }); List<Patient> patients = DbMethods.getInstance().getPatients(); visitCount = DbMethods.getInstance().getVisitsCount(); Assert.True(patients.Count == 100); Assert.True(visitCount == 2000); }