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; }
public void SaveCountryCSVRecord() { var respose = new CountryImport().SaveData(); //IOC Assert.AreEqual("Data Saved Successfully", respose); }