public PutTenantCommand( ITenantRepository tenantRepository, IMapper <Data.Tenant, ViewModels.Tenant> tenantToTenantMapper, IMapper <SaveTenant, Data.Tenant> saveTenantToTenantMapper, IHostTenantInfo host) { this.tenantRepository = tenantRepository ?? throw new ArgumentNullException(nameof(tenantRepository)); this.tenantToTenantMapper = tenantToTenantMapper ?? throw new ArgumentNullException(nameof(tenantToTenantMapper)); this.saveTenantToTenantMapper = saveTenantToTenantMapper ?? throw new ArgumentNullException(nameof(saveTenantToTenantMapper)); this.host = host ?? throw new ArgumentNullException(nameof(host)); }
public PatchTenantCommand( IActionContextAccessor actionContextAccessor, IObjectModelValidator objectModelValidator, ITenantRepository tenantRepository, IMapper <Data.Tenant, ViewModels.Tenant> tenantToTenantMapper, IMapper <Data.Tenant, SaveTenant> tenantToSaveTenantMapper, IMapper <SaveTenant, Data.Tenant> saveTenantToTenantMapper, IHostTenantInfo host) { this.actionContextAccessor = actionContextAccessor ?? throw new ArgumentNullException(nameof(actionContextAccessor)); this.objectModelValidator = objectModelValidator ?? throw new ArgumentNullException(nameof(objectModelValidator)); this.tenantRepository = tenantRepository ?? throw new ArgumentNullException(nameof(tenantRepository)); this.tenantToTenantMapper = tenantToTenantMapper ?? throw new ArgumentNullException(nameof(tenantToTenantMapper)); this.tenantToSaveTenantMapper = tenantToSaveTenantMapper ?? throw new ArgumentNullException(nameof(tenantToSaveTenantMapper)); this.saveTenantToTenantMapper = saveTenantToTenantMapper ?? throw new ArgumentNullException(nameof(saveTenantToTenantMapper)); this.host = host ?? throw new ArgumentNullException(nameof(host)); }