Beispiel #1
0
 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));
 }
Beispiel #2
0
 public TenantUserRepositoryTests()
 {
     tenant = CreateTenant();
     tenantUserRepository = GetInMemoryTenantRepository();
 }