Exemplo n.º 1
0
            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);
            }
Exemplo n.º 2
0
 internal MultiPartBuilder(ProgressMonitorFactory factory, string process)
 {
     this.Aggregator = new Aggregator(factory.NewIndicator(process));
 }