Пример #1
0
 public async Task Load()
 {
     await Task.WhenAll(IssueLoader.Load(),
                        DecisionsLoader.Load(),
                        EventsLoader.Load(),
                        InventionsLoader.Load(),
                        TechnologiesLoader.Load(),
                        PopLoader.Load(),
                        UnitLoader.Load(),
                        ProvinceLoader.Load(),
                        PopTypeLoader.Load(),
                        DiplomacyLoader.Load(),
                        OobLoader.Load(),
                        WarLoader.Load(),
                        BookmarkLoader.Load(),
                        BuildingLoader.Load(),
                        CbLoader.Load(),
                        CotColorLoader.Load(),
                        NationalFocusLoader.Load(),
                        GraphicalCultureLoader.Load(),
                        IdeologyLoader.Load(),
                        CountryLoader.Load(),
                        CountryColorsLoader.Load(),
                        CrimeLoader.Load(),
                        CultureLoader.Load(),
                        DefinesLoader.Load(),
                        EventModifiersLoader.Load(),
                        GoodsLoader.Load(),
                        GovernmentsLoader.Load(),
                        NationalValueLoader.Load(),
                        OnActionsLoader.Load(),
                        PopTypeLoader.Load(),
                        ProductionTypeLoader.Load(),
                        RebelTypeLoader.Load(),
                        ReligionLoader.Load(),
                        StaticModifiersLoader.Load(),
                        TechSchoolLoader.Load(),
                        TraitsLoader.Load(),
                        TriggeredModifiersLoader.Load(),
                        CountryDirectoryLoader.Load()
                        );
 }
    public void ReversePropsNotNull()
    {
        var country = CountryLoader.LoadAustraliaLocationData();

        foreach (var state in country.States)
        {
            Assert.NotNull(state.Country);
            foreach (var province in state.Provinces)
            {
                Assert.NotNull(province.State);
                foreach (var community in province.Communities)
                {
                    Assert.NotNull(community.Province);
                    foreach (var place in community.Places)
                    {
                        Assert.NotNull(place.Community);
                    }
                }
            }
        }
    }
Пример #3
0
    public void Normal()
    {
        #region usage

        // All country info. This is only the country metadata
        // and not all locationData.
        var allCountryInfo = CountryLoader.CountryInfo;
        var costaRicaInfo  = allCountryInfo.Single(x => x.Iso == "CR");

        // Loads all location data for a specific country
        var australiaData = CountryLoader.LoadAustraliaLocationData();
        var name          = australiaData.Name;
        var state         = australiaData.States.First();
        var province      = state.Provinces.First();
        var community     = province.Communities.First();
        var place         = community.Places.First();
        var postCode      = place.PostCode;
        var placeName     = place.Name;
        var latitude      = place.Location.Latitude;
        var longitude     = place.Location.Longitude;

        #endregion
    }
Пример #4
0
 public ICountry Uruguay()
 {
     return(CountryLoader.LoadUruguayLocationData());
 }
Пример #5
0
 public ICountry Switzerland()
 {
     return(CountryLoader.LoadSwitzerlandLocationData());
 }
    public Task PostCodes()
    {
        var country = CountryLoader.LoadAustraliaLocationData();

        return(Verifier.Verify(country.PostCodes().First()));
    }
 public void LoadAll()
 {
     CountryLoader.LoadAll();
     Assert.NotEmpty(CountryLoader.LoadedLocationData);
 }
Пример #8
0
 public ICountry Denmark()
 {
     return(CountryLoader.LoadDenmarkLocationData());
 }
Пример #9
0
        public ActionResult Details(string country)
        {
            var v = new CountryLoader().LoadInfo(country).Result;

            return(View(v));
        }
Пример #10
0
 public ICountry SouthAfrica()
 {
     return(CountryLoader.LoadSouthAfricaLocationData());
 }
Пример #11
0
 public ICountry Czechia()
 {
     return(CountryLoader.LoadCzechiaLocationData());
 }
Пример #12
0
 public ICountry WallisAndFutuna()
 {
     return(CountryLoader.LoadWallisAndFutunaLocationData());
 }
Пример #13
0
 public ICountry Mayotte()
 {
     return(CountryLoader.LoadMayotteLocationData());
 }
Пример #14
0
 public ICountry USVirginIslands()
 {
     return(CountryLoader.LoadUSVirginIslandsLocationData());
 }
Пример #15
0
 public ICountry Belgium()
 {
     return(CountryLoader.LoadBelgiumLocationData());
 }
Пример #16
0
 public ICountry Vatican()
 {
     return(CountryLoader.LoadVaticanLocationData());
 }
Пример #17
0
 public ICountry Colombia()
 {
     return(CountryLoader.LoadColombiaLocationData());
 }
Пример #18
0
 public ICountry Bulgaria()
 {
     return(CountryLoader.LoadBulgariaLocationData());
 }
Пример #19
0
 public ICountry CostaRica()
 {
     return(CountryLoader.LoadCostaRicaLocationData());
 }
Пример #20
0
 public ICountry Bermuda()
 {
     return(CountryLoader.LoadBermudaLocationData());
 }
Пример #21
0
 public ICountry Germany()
 {
     return(CountryLoader.LoadGermanyLocationData());
 }
Пример #22
0
 public ICountry Brazil()
 {
     return(CountryLoader.LoadBrazilLocationData());
 }
    public Task LoadLocationData()
    {
        var country = CountryLoader.LoadLocationData("PW");

        return(Verify(country));
    }
Пример #24
0
 public ICountry Andorra()
 {
     return(CountryLoader.LoadAndorraLocationData());
 }
Пример #25
0
 public ICountry Ukraine()
 {
     return(CountryLoader.LoadUkraineLocationData());
 }
Пример #26
0
 public ICountry Turkey()
 {
     return(CountryLoader.LoadTurkeyLocationData());
 }
    public Task LoadSpecificLocationData()
    {
        var country = CountryLoader.LoadPalauLocationData();

        return(Verifier.Verify(country));
    }
Пример #28
0
 public ICountry Canada()
 {
     return(CountryLoader.LoadCanadaLocationData());
 }
Пример #29
0
 public ICountry Belarus()
 {
     return(CountryLoader.LoadBelarusLocationData());
 }
Пример #30
0
 public ICountry UnitedStates()
 {
     return(CountryLoader.LoadUnitedStatesLocationData());
 }