public ARInvoiceGAFRecordsCreatorTestsBase()
 {
     CustomerDataContext = GetService <CustomerDataContext>();
     ArInvoiceAggregateBuilderFactory = GetService <ARInvoiceAggregateBuilderFactory>();
     ArAddressDataContext             = GetService <ARAddressDataContext>();
     CountryDataContext = GetService <CountryDataContext>();
 }
Exemplo n.º 2
0
 public TestGAFRepository(TaxDataContext taxDataContext,
                          VendorDataContext vendorDataContext,
                          LocationDataContext locationDataContext,
                          ContactDataContext contactDataContext,
                          CompanyDataContext companyDataContext,
                          CustomerDataContext customerDataContext,
                          ARAddressDataContext arAddressDataContext,
                          CountryDataContext countryDataContext,
                          SOAddressDataContext soAddressDataContext)
 {
     _taxDataContext       = taxDataContext;
     _vendorDataContext    = vendorDataContext;
     _locationDataContext  = locationDataContext;
     _contactDataContext   = contactDataContext;
     _companyDataContext   = companyDataContext;
     _customerDataContext  = customerDataContext;
     _arAddressDataContext = arAddressDataContext;
     _countryDataContext   = countryDataContext;
     _soAddressDataContext = soAddressDataContext;
 }
Exemplo n.º 3
0
 public StateRepository(CountryDataContext countryDataContext)
     : base(countryDataContext)
 {
 }
Exemplo n.º 4
0
        private static async Task SeedCountryDataAsync(CountryDataContext dbContext)
        {
            await dbContext.AddAsync(new Country
            {
                Area             = 1,
                Capital          = "Country capital",
                Continent        = "Country continent",
                CountryLanguages = new List <CountryLanguage>
                {
                    new CountryLanguage
                    {
                        Language = new Language
                        {
                            Code = "Language code"
                        }
                    }
                },
                Currency = new Currency
                {
                    Code = CurrencyCode,
                    Name = CurrencyName
                },
                Fips           = "Country fips",
                Iso            = "Country ISO",
                Iso3           = "Country ISO3",
                IsoNumeric     = 1,
                Name           = CountryName,
                PhonePrefix    = "Country phone prefix",
                Population     = 1000,
                PostCodeFormat = "Country post code format",
                PostCodeRegex  = "Country post code regex",
                TopLevelDomain = "Country top level domain",
                States         = new List <State>
                {
                    new State
                    {
                        Code      = "State code",
                        Name      = "State name",
                        Provinces = new List <Province>
                        {
                            new Province
                            {
                                Code        = "Province code",
                                Name        = "Province name",
                                Communities = new List <Community>
                                {
                                    new Community
                                    {
                                        Code   = "Community code",
                                        Name   = "Community name",
                                        Places = new List <Place>
                                        {
                                            new Place
                                            {
                                                Name     = "Place name",
                                                LatLong  = "Place lat long",
                                                PostCode = "Place post code"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            });

            await dbContext.SaveChangesAsync();
        }
Exemplo n.º 5
0
 public static async Task SeedDataAsync(CountryDataContext dbContext)
 {
     dbContext.Database.EnsureCreated();
     await SeedCountryDataAsync(dbContext);
 }
Exemplo n.º 6
0
 public CountryManager(CountryDataContext dbContext, IWebHostEnvironment hostEnvironment)
 {
     _dbContext       = dbContext;
     _hostEnvironment = hostEnvironment;
 }
Exemplo n.º 7
0
 public CurrencyRepository(CountryDataContext countryDataContext)
     : base(countryDataContext)
 {
 }
Exemplo n.º 8
0
 public PlaceRepository(CountryDataContext countryDataContext)
     : base(countryDataContext)
 {
 }
Exemplo n.º 9
0
 public CommunityRepository(CountryDataContext countryDataContext)
     : base(countryDataContext)
 {
 }
Exemplo n.º 10
0
 public FaithManager(CountryDataContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemplo n.º 11
0
 public LanguageRepository(CountryDataContext countryDataContext)
     : base(countryDataContext) { }
Exemplo n.º 12
0
 public HomeController(CountryDataContext context)
 {
     db = context;
 }
Exemplo n.º 13
0
 public SettlementsController(CountryDataContext context)
 {
     db = context;
 }
Exemplo n.º 14
0
 public PolityManager(CountryDataContext dbContext)
 {
     _dbContext = dbContext;
 }