Пример #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;
 }