public ProviderUnitFactory(AbstractEntityRepositoryFactory entityRepositoryFactory, Func<AbstractScopedCache> unitScopedCacheFactory = null)
 {
     Mandate.ParameterNotNull(entityRepositoryFactory, "entityRepositoryFactory");
     EntityRepositoryFactory = entityRepositoryFactory;
     UnitScopedCacheFactory = unitScopedCacheFactory ?? (() => new DictionaryScopedCache());
 }
 public ProviderUnitFactory(AbstractEntityRepositoryFactory entityRepositoryFactory, Func <AbstractScopedCache> unitScopedCacheFactory = null)
 {
     Mandate.ParameterNotNull(entityRepositoryFactory, "entityRepositoryFactory");
     EntityRepositoryFactory = entityRepositoryFactory;
     UnitScopedCacheFactory  = unitScopedCacheFactory ?? (() => new DictionaryScopedCache());
 }