public ServiceDecompositionDesignDataImportProcessor(IServiceDecompositionImporter serviceDecompositionTemplateImporter, ITransformTemplateToDesign transformTemplateToDesign, IServiceDeskService serviceDeskService, IUnitOfWork unitOfWork) { if (serviceDecompositionTemplateImporter == null) { throw new ArgumentNullException(nameof(serviceDecompositionTemplateImporter)); } if (transformTemplateToDesign == null) { throw new ArgumentNullException(nameof(transformTemplateToDesign)); } if (serviceDeskService == null) { throw new ArgumentNullException(nameof(serviceDeskService)); } if (unitOfWork == null) { throw new ArgumentNullException(nameof(unitOfWork)); } _serviceDecompositionTemplateImporter = serviceDecompositionTemplateImporter; _transformTemplateToDesign = transformTemplateToDesign; _serviceDeskService = serviceDeskService; _unitOfWork = unitOfWork; }
public void TransformTemplateToDesign_Contructor_NoServiceFunctionService_ThrowsException() { #region Arrange _transformTemplateToDesign = new TransformTemplateToDesign(_mockServiceDeskService.Object, _mockServiceDomainService.Object, null, _mockServiceComponentService.Object, _mockDomainTypeRefDataService.Object, _mockFunctionTypeRefDataService.Object, _mockServiceDeliveryOrganisationTypeRefDataService.Object, _mockServiceDeliveryUnitTypeRefDataService.Object, _mockResolverGroupTypeRefDataService.Object, _mockUserIdentity.Object); #endregion }
public TemplateProcessor(IRepository <TemplateRow> templateRowRepository, ITransformTemplateToDesign transformTemplateToDesign, IUnitOfWork unitOfWork) { if (templateRowRepository == null) { throw new ArgumentNullException(nameof(templateRowRepository)); } if (transformTemplateToDesign == null) { throw new ArgumentNullException(nameof(transformTemplateToDesign)); } if (unitOfWork == null) { throw new ArgumentNullException(nameof(unitOfWork)); } _templateRowRepository = templateRowRepository; _transformTemplateToDesign = transformTemplateToDesign; _unitOfWork = unitOfWork; }
public void TestInitilize() { _mockServiceDeskService = new Mock <IServiceDeskService>(); _mockServiceDomainService = new Mock <IServiceDomainService>(); _mockServiceFunctionService = new Mock <IServiceFunctionService>(); _mockServiceComponentService = new Mock <IServiceComponentService>(); _mockDomainTypeRefDataService = new Mock <IDomainTypeRefDataService>(); _mockFunctionTypeRefDataService = new Mock <IFunctionTypeRefDataService>(); _mockServiceDeliveryOrganisationTypeRefDataService = new Mock <IServiceDeliveryOrganisationTypeRefDataService>(); _mockServiceDeliveryUnitTypeRefDataService = new Mock <IServiceDeliveryUnitTypeRefDataService>(); _mockResolverGroupTypeRefDataService = new Mock <IResolverGroupTypeRefDataService>(); _mockUserIdentity = new Mock <IUserIdentity>(); _transformTemplateToDesign = new TransformTemplateToDesign(_mockServiceDeskService.Object, _mockServiceDomainService.Object, _mockServiceFunctionService.Object, _mockServiceComponentService.Object, _mockDomainTypeRefDataService.Object, _mockFunctionTypeRefDataService.Object, _mockServiceDeliveryOrganisationTypeRefDataService.Object, _mockServiceDeliveryUnitTypeRefDataService.Object, _mockResolverGroupTypeRefDataService.Object, _mockUserIdentity.Object); }