github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/formation/export_test.go (about)

     1  package formation
     2  
     3  import "github.com/kyma-incubator/compass/components/director/pkg/persistence"
     4  
     5  // NewServiceWithAsaEngine creates formation service with the provided ASAEngine
     6  func NewServiceWithAsaEngine(transact persistence.Transactioner, applicationRepository applicationRepository, labelDefRepository labelDefRepository, labelRepository labelRepository, formationRepository FormationRepository, formationTemplateRepository FormationTemplateRepository, labelService labelService, uuidService uuidService, labelDefService labelDefService, asaRepo automaticFormationAssignmentRepository, asaService automaticFormationAssignmentService, tenantSvc tenantService, runtimeRepo runtimeRepository, runtimeContextRepo runtimeContextRepository, formationAssignmentService formationAssignmentService, webhookRepository webhookRepository, formationAssignmentNotificationService FormationAssignmentNotificationsService, notificationsService NotificationsService, constraintEngine constraintEngine, runtimeTypeLabelKey, applicationTypeLabelKey string, engine asaEngine, statusService statusService) *service {
     7  	return &service{
     8  		applicationRepository:                  applicationRepository,
     9  		labelDefRepository:                     labelDefRepository,
    10  		labelRepository:                        labelRepository,
    11  		formationRepository:                    formationRepository,
    12  		formationTemplateRepository:            formationTemplateRepository,
    13  		labelService:                           labelService,
    14  		labelDefService:                        labelDefService,
    15  		asaService:                             asaService,
    16  		uuidService:                            uuidService,
    17  		tenantSvc:                              tenantSvc,
    18  		repo:                                   asaRepo,
    19  		runtimeRepo:                            runtimeRepo,
    20  		runtimeContextRepo:                     runtimeContextRepo,
    21  		formationAssignmentService:             formationAssignmentService,
    22  		formationAssignmentNotificationService: formationAssignmentNotificationService,
    23  		webhookRepository:                      webhookRepository,
    24  		notificationsService:                   notificationsService,
    25  		constraintEngine:                       constraintEngine,
    26  		transact:                               transact,
    27  		runtimeTypeLabelKey:                    runtimeTypeLabelKey,
    28  		applicationTypeLabelKey:                applicationTypeLabelKey,
    29  		asaEngine:                              engine,
    30  		statusService:                          statusService,
    31  	}
    32  }