Пример #1
0
        public void SaveCountry_DeleteExistingCountry_ShouldDeleteSuccessfully(string name)
        {
            using (var scope = _iContainer.BeginLifetimeScope(AppContextType.UnitTest.ToString()))
            {
                _iCountryDal = scope.Resolve <ICountryDal>();

                var country = _iCountryDal.GetCountryByName(name);

                country = _iCountryDal.SaveCountry(country, true);

                Assert.True(country != null);
            }
        }