示例#1
0
        public void SaveCity_DeleteExistingCity_ShouldDeleteSuccessfully(string Name)
        {
            using (var scope = _iContainer.BeginLifetimeScope(AppContextType.UnitTest.ToString()))
            {
                _iCityDal = scope.Resolve <ICityDal>();

                var cityResult = _iCityDal.GetCityByName(Name);

                cityResult = _iCityDal.SaveCity(cityResult, true);

                Assert.True(cityResult == null);
            }
        }