public void SetUp() { ServiceLocator.Current = new WindsorServiceLocator(); _serviceLocator = ServiceLocator.Current; //var nhc = _serviceLocator.Get<INhDatabaseConfiguration>(); //var dbContext = _serviceLocator.Get<EfDbContext>(); ////dbContext.Database.Delete(); ////dbContext.Database.Create(); _repository = _serviceLocator.Get <IGeneralRepository>(); //TODO: USE MOCK _repository.DeleteAll <Product>(); _repository.DeleteAll <Category>(); }
public void DeleteAll <T>() where T : class, TEntity { _general.DeleteAll <T>(); }