public MemberUnitOfWork(GravityManagerDbContext context
                         , IUserRepository userRepository
                         , IOrganizationRepository organizationRepository
                         ) : base(context)
 {
     UserRepository         = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     OrganizationRepository = organizationRepository ?? throw new ArgumentNullException(nameof(organizationRepository));
 }
Exemple #2
0
 public DiscoveryUnitOfWork(GravityManagerDbContext dbContext) : base(dbContext)
 {
     AwsAccounts        = new AwsAccountRepository(Context);
     AwsInstances       = new AwsInstanceRepository(Context);
     DiscoverySessions  = new DiscoverySessionRepository(Context);
     Dependencies       = new DependencyRepository(Context);
     DependencyFindings = new DependencyFindingRepository(Context);
     ReportLines        = new ReportLineRepository(Context);
 }