public AccountRepositoryWrapper(AccountRepository repo)
 {
     this.repo = repo;
 }
예제 #2
0
        internal AccountRepository RequireDependency(AccountRepository injectedDependency, bool throwIfMissing = true)
        {
            Func<AccountRepository> resolver = this.AccountRepositoryResolver;

             if (resolver != null)
            return resolver();

             if (injectedDependency != null)
            return injectedDependency;

             if (throwIfMissing)
            throw CreateMissingDependencyException(typeof(AccountRepository), "AccountRepositoryResolver");

             return null;
        }