protected virtual void InitializeCommonMocks(int majorVersion, string reportCodename) { _mockInstance = MockInstances.Get(majorVersion); _mockInstanceDetails = MockInstanceDetails.Get(majorVersion, _mockInstance); _mockInstanceService = MockInstanceServiceHelper.SetupInstanceService(_mockInstance, _mockInstanceDetails); _mockDatabaseService = MockDatabaseServiceHelper.SetupMockDatabaseService(_mockInstance); _mockCmsFileService = MockCmsFileServiceHelper.SetupMockCmsFileService(); _mockReportMetadataService = MockReportMetadataServiceHelper.GetBasicReportMetadataService <TermsType>(reportCodename); }
public ReportMetadataServiceTests(int majorVersion) { TokenExpressionResolver.RegisterTokenExpressions(typeof(Term).Assembly); var mockInstance = MockInstances.Get(majorVersion); var mockInstanceDetails = MockInstanceDetails.Get(majorVersion, mockInstance); var mockInstanceService = MockInstanceServiceHelper.SetupInstanceService(mockInstance, mockInstanceDetails); reportMedatadataService = new ReportMetadataService(mockInstanceService.Object); }
public ModuleMetadataServiceTests(int majorVersion) { TokenExpressionResolver.RegisterTokenExpressions(typeof(Term).Assembly); var mockInstance = MockInstances.Get(majorVersion); var mockInstanceDetails = MockInstanceDetails.Get( majorVersion, mockInstance ); var mockInstanceService = MockIInstanceService.Get(); mockInstanceService.SetupCurrentInstance( mockInstance, mockInstanceDetails ); moduleMedatadataService = new ModuleMetadataService(mockInstanceService.Object); }
protected AbstractReportTests(int majorVersion) { TokenExpressionResolver.RegisterTokenExpressions(typeof(TokenExpressionResolver).Assembly); mockInstance = MockInstances.Get(majorVersion); mockInstanceDetails = MockInstanceDetails.Get( majorVersion, mockInstance ); mockInstanceService = MockIInstanceService.Get(); mockInstanceService.SetupCurrentInstance( mockInstance, mockInstanceDetails ); mockDatabaseService = MockIDatabaseService.Get(); mockDatabaseService.SetupConfigure(mockInstance); mockCmsFileService = MockICmsFileService.Get(); }