public ARInvoiceGAFRecordsCreatorTestsBase()
 {
     CustomerDataContext = GetService <CustomerDataContext>();
     ArInvoiceAggregateBuilderFactory = GetService <ARInvoiceAggregateBuilderFactory>();
     ArAddressDataContext             = GetService <ARAddressDataContext>();
     CountryDataContext = GetService <CountryDataContext>();
 }
Beispiel #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;
 }
Beispiel #3
0
 public StateRepository(CountryDataContext countryDataContext)
     : base(countryDataContext)
 {
 }
Beispiel #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();
        }
Beispiel #5
0
 public static async Task SeedDataAsync(CountryDataContext dbContext)
 {
     dbContext.Database.EnsureCreated();
     await SeedCountryDataAsync(dbContext);
 }
 public CountryManager(CountryDataContext dbContext, IWebHostEnvironment hostEnvironment)
 {
     _dbContext       = dbContext;
     _hostEnvironment = hostEnvironment;
 }
 public CurrencyRepository(CountryDataContext countryDataContext)
     : base(countryDataContext)
 {
 }
Beispiel #8
0
 public PlaceRepository(CountryDataContext countryDataContext)
     : base(countryDataContext)
 {
 }
 public CommunityRepository(CountryDataContext countryDataContext)
     : base(countryDataContext)
 {
 }
Beispiel #10
0
 public FaithManager(CountryDataContext dbContext)
 {
     _dbContext = dbContext;
 }
 public LanguageRepository(CountryDataContext countryDataContext)
     : base(countryDataContext) { }
Beispiel #12
0
 public HomeController(CountryDataContext context)
 {
     db = context;
 }
Beispiel #13
0
 public SettlementsController(CountryDataContext context)
 {
     db = context;
 }
Beispiel #14
0
 public PolityManager(CountryDataContext dbContext)
 {
     _dbContext = dbContext;
 }