Example #1
0
        public void GetMealButtonLocationTest()
        {
            CustomerFormPresentationModel model = new CustomerFormPresentationModel(new Model());
            List <int> buttonLocation           = model.GetMealButtonLocation(0);

            Assert.AreEqual(buttonLocation[0], 10);
            Assert.AreEqual(buttonLocation[1], 10);
            buttonLocation = model.GetMealButtonLocation(10);
            Assert.AreEqual(buttonLocation[0], 170);
            Assert.AreEqual(buttonLocation[1], 10);
        }