public void Init() { organizations = Substitute.For <ISearch <Organization> >(); tenantKeyManager = Substitute.For <ITenantKeyManager>(); tenantUrlHelper = Substitute.For <ITenantUrlHelper>(); handler = new SelectTenantOrganizationCommandHandler(organizations, tenantKeyManager, tenantUrlHelper) { Logger = Substitute.For <ILogger>() }; }
public SelectTenantOrganizationCommandHandler(ISearch <Organization> organizations, ITenantKeyManager tenantKeyManager, ITenantUrlHelper tenantUrlHelper) { this.organizations = organizations; this.tenantKeyManager = tenantKeyManager; this.tenantUrlHelper = tenantUrlHelper; }