示例#1
0
        public void ProducerEdiblesTest()
        {
            //ARRANGE
            var edibles = new List <Edible>();

            //ACT
            edibles = (List <Edible>)ProducerController.GetProducerEdibles("0000000000L6M7E0000000000");

            //ASSERT
            foreach (Edible edible in edibles)
            {
                Assert.IsNotNull(edible);
                Assert.IsTrue(edible.IsValid());
            }

            //OUTPUT
            foreach (Edible edible in edibles)
            {
                Console.WriteLine("Edible: " + edible.Name);
                Console.WriteLine("-----------------------");
            }
        }