public void Init() { this.tenantRepo = new Mock <IRepository <Tenant> >(); this.tenantsDomainService = new TenantDomainService(tenantRepo.Object); }
public TenantService(IRepository <Tenant> tenantRepo, TenantDomainService tenantDomainService, IUnitOfWork unitOfWork) { this.tenantDomainService = tenantDomainService; this.tenantRepo = tenantRepo; this.unitOfWork = unitOfWork; }