コード例 #1
0
        public void Add_City_Name_To_Container()
        {
            City            city      = CityManager.GetCity();
            ServerContainer container = ContainerManeger.Prepare(city);

            Assert.AreEqual(city.Name, container.CityName);
        }
コード例 #2
0
        public void Prepare_Container_For_Random_City()
        {
            var             city      = CityManager.GetCity();
            ServerContainer container = ContainerManeger.Prepare(city);

            Assert.AreEqual(false, container.IsLoaded);
        }
コード例 #3
0
        internal static ServerContainer Prepare(City city)
        {
            var cntr = new ServerContainer();

            cntr.CityName = city.Name;
            cntr.IsLoaded = false;
            return(cntr);
        }
コード例 #4
0
        public void Change_Container_IsLoaded()
        {
            City            city      = CityManager.GetCity();
            ServerContainer container = ContainerManeger.Prepare(city);

            Assert.AreEqual(false, container.IsLoaded);
            ContainerManeger.ChangeContainerIsLoaded(container);
            Assert.AreEqual(true, container.IsLoaded);
        }
コード例 #5
0
 internal static void ChangeContainerIsLoaded(ServerContainer serverContainer)
 {
     serverContainer.IsLoaded = true;
 }