internal virtual ProgressMonitorFactory Mock(Indicator indicatorMock, int indicatorSteps) { when(indicatorMock.ReportResolution()).thenReturn(indicatorSteps); ProgressMonitorFactory factory = Mockito.mock(typeof(ProgressMonitorFactory)); when(factory.NewIndicator(any(typeof(string)))).thenReturn(indicatorMock); FactoryMocks[factory] = false; return(factory); }
internal MultiPartBuilder(ProgressMonitorFactory factory, string process) { this.Aggregator = new Aggregator(factory.NewIndicator(process)); }