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>()
     };
 }
コード例 #2
0
 public SelectTenantOrganizationCommandHandler(ISearch <Organization> organizations, ITenantKeyManager tenantKeyManager, ITenantUrlHelper tenantUrlHelper)
 {
     this.organizations    = organizations;
     this.tenantKeyManager = tenantKeyManager;
     this.tenantUrlHelper  = tenantUrlHelper;
 }