public void AddMediaTest()
        {
            FireWarehouseController fireWarehouseController;

            // 测试用例1
            fireWarehouseController = new FireWarehouseController();
            fireWarehouseController.AddMedia(
                (Dictionary <string, object>)null, (Dictionary <string, object>)null);
            Assert.IsNotNull((object)fireWarehouseController);
            Assert.AreEqual <string>
                ("127.0.0.1", ((BaseService)fireWarehouseController).Server);
            Assert.AreEqual <int>(8080, ((BaseService)fireWarehouseController).Port);

            // 测试用例2
            Dictionary <string, object> dictionary;

            fireWarehouseController = new FireWarehouseController();
            dictionary     = new Dictionary <string, object>(0);
            dictionary[""] = (object)null;
            fireWarehouseController.AddMedia
                (dictionary, (Dictionary <string, object>)null);
            Assert.IsNotNull((object)fireWarehouseController);
            Assert.AreEqual <string>
                ("127.0.0.1", ((BaseService)fireWarehouseController).Server);
            Assert.AreEqual <int>(8080, ((BaseService)fireWarehouseController).Port);
        }
        public void AddMediaTest1()
        {
            FireWarehouseController fireWarehouseController;

            fireWarehouseController = new FireWarehouseController();
            fireWarehouseController.AddMedia
                ((string)null, (Dictionary <string, object>)null);
            Assert.IsNotNull((object)fireWarehouseController);
            Assert.AreEqual <string>
                ("127.0.0.1", ((BaseService)fireWarehouseController).Server);
            Assert.AreEqual <int>(8080, ((BaseService)fireWarehouseController).Port);
        }