public void Add_City_Name_To_Container() { City city = CityManager.GetCity(); ServerContainer container = ContainerManeger.Prepare(city); Assert.AreEqual(city.Name, container.CityName); }
public void Prepare_Container_For_Random_City() { var city = CityManager.GetCity(); ServerContainer container = ContainerManeger.Prepare(city); Assert.AreEqual(false, container.IsLoaded); }
internal static ServerContainer Prepare(City city) { var cntr = new ServerContainer(); cntr.CityName = city.Name; cntr.IsLoaded = false; return(cntr); }
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); }
internal static void ChangeContainerIsLoaded(ServerContainer serverContainer) { serverContainer.IsLoaded = true; }