public TenantDataService(TenantRepository tenantRepository, TenantUserRepository tenantUserRepository, AddressRepository addressRepository, UserRepository userRepository) { this.tenantRepository = tenantRepository ?? throw new ArgumentNullException(nameof(tenantRepository)); this.addressRepository = addressRepository ?? throw new ArgumentNullException(nameof(addressRepository)); this.tenantUserRepository = tenantUserRepository; this.userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); }
public TenantUserRepositoryTests() { tenant = CreateTenant(); tenantUserRepository = GetInMemoryTenantRepository(); }