public ARInvoiceGAFRecordsCreatorTestsBase() { CustomerDataContext = GetService <CustomerDataContext>(); ArInvoiceAggregateBuilderFactory = GetService <ARInvoiceAggregateBuilderFactory>(); ArAddressDataContext = GetService <ARAddressDataContext>(); CountryDataContext = GetService <CountryDataContext>(); }
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; }
public StateRepository(CountryDataContext countryDataContext) : base(countryDataContext) { }
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(); }
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) { }
public PlaceRepository(CountryDataContext countryDataContext) : base(countryDataContext) { }
public CommunityRepository(CountryDataContext countryDataContext) : base(countryDataContext) { }
public FaithManager(CountryDataContext dbContext) { _dbContext = dbContext; }
public LanguageRepository(CountryDataContext countryDataContext) : base(countryDataContext) { }
public HomeController(CountryDataContext context) { db = context; }
public SettlementsController(CountryDataContext context) { db = context; }
public PolityManager(CountryDataContext dbContext) { _dbContext = dbContext; }