public void One_time_setup()
        {
            _plotFactoryMock = new Mock <IPlotFactory>();
            var serviceProvider = new ServiceCollection()
                                  .AddLogging()
                                  .BuildServiceProvider();

            _factory = serviceProvider.GetService <ILoggerFactory>()
                       .AddConsole();
            _logger               = _factory.CreateLogger <InverseSolverService>();
            _parameterTools       = new ParameterTools();
            _inverseSolverService = new InverseSolverService(_logger, _plotFactoryMock.Object, _parameterTools);
        }
示例#2
0
 public PlotSolutionDomainResultsService(ILogger <PlotSolutionDomainResultsService> logger, IParameterTools parameterTools)
 {
     _logger         = logger;
     _parameterTools = parameterTools;
 }
 public InverseSolverService(ILogger <InverseSolverService> logger, IPlotFactory plotFactory, IParameterTools parameterTools)
 {
     _logger         = logger;
     _plotFactory    = plotFactory;
     _parameterTools = parameterTools;
 }