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(); }