public void SignIn10000Clients(NutritionClinic sut)
 {
     for (int i = 0; i < 10000; i++)
     {
         sut.SignInNewClient(ClientGenerator.GenerateRandomClient(sut));
     }
 }
        public void NutritionClinic_SigningIn100001Patients_CurrentClientIsCorrect()
        {
            NutritionClinic sutClinic = SetUpTestClinic();

            SignIn10000Clients(sutClinic);

            Client newCurrentClient = new Client("Jane Doe", 1.7, 60, sutClinic);

            sutClinic.SignInNewClient(newCurrentClient);

            Assert.AreEqual(sutClinic.CurrentClient, newCurrentClient);
        }
Esempio n. 3
0
        //CONSTRUCTOR
        public MySimulation(TextInput input, NutritionClinic theClinic)
        {
            this.input     = input;
            startTime      = DateTime.Now;
            runningTime    = DateTime.Now;
            this.TheClinic = theClinic;
            simState       = new StandardState("MESSAGEBOARD");

            messageBoard.Log($"This is the {theClinic.Name} nutrition clinic!");
            messageBoard.Log($"We help people get back in shape. Lets start by signing in a new client!");
            messageBoard.Log(theClinic.SignInNewClient(ClientGenerator.GenerateRandomClient(theClinic)));
        }