Пример #1
0
        public void SWGetByIdTest_id_1()
        {
            var contId = 1;
            var res    = Switchgear.GetById(contId);

            Assert.AreEqual(contId, res.id);
            Console.WriteLine(res);
        }
Пример #2
0
        public void SWSectionTest_sgid_1()
        {
            var contId = 1;
            var res    = Switchgear.GetById(contId);

            Assert.IsTrue(res.Sections.Count > 0);
            foreach (var m in res.Sections)
            {
                Console.WriteLine(m);
            }
        }
 public ActionResult <Switchgear> Get(int id)
 {
     return(Switchgear.GetById(id));
 }