protected Country Map(CountryImport countryImport)
        {
            var exists = Queryable.FirstOrDefault(_context.tblCountry, p => p.Code == countryImport.Code);
            Guid id = exists != null ? exists.id : Guid.NewGuid();
            
            var country = new Country(id);
            country.Name = countryImport.Name;
            country.Code = countryImport.Code;
            country.Currency = "";

            return country;

        }
示例#2
0
        public void SaveCountryCSVRecord()
        {
            var respose = new CountryImport().SaveData(); //IOC

            Assert.AreEqual("Data Saved Successfully", respose);
        }