예제 #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());
 }