/// <summary> /// Creates a new instance of Rhino.Agent.Controllers.RhinoController. /// </summary> /// <param name="provider">Services container.</param> public RhinoController(IServiceProvider provider) { types = provider.GetRequiredService <IEnumerable <Type> >(); configurationRepository = provider.GetRequiredService <RhinoConfigurationRepository>(); modelRepository = provider.GetRequiredService <RhinoModelRepository>(); testCaseRepository = provider.GetRequiredService <RhinoTestCaseRepository>(); appSettings = provider.GetRequiredService <IConfiguration>(); this.provider = provider; }
/// <summary> /// Creates a new instance of this Rhino.Agent.Controllers.TestsController. /// </summary> /// <param name="provider"><see cref="IServiceProvider"/> to use with this Rhino.Agent.Controllers.TestsController.</param> public TestsController(IServiceProvider provider) { rhinoTest = provider.GetRequiredService <RhinoTestCaseRepository>(); rhinoConfiguration = provider.GetRequiredService <RhinoConfigurationRepository>(); jsonSettings = provider.GetRequiredService <JsonSerializerSettings>(); }
/// <summary> /// Creates a new instance of this Rhino.Agent.Controllers.ConfigurationsController. /// </summary> /// <param name="provider"><see cref="IServiceProvider"/> to use with this Rhino.Agent.Controllers.ConfigurationsController.</param> public ConfigurationsController(IServiceProvider provider) { repository = provider.GetRequiredService <RhinoConfigurationRepository>(); jsonSettings = provider.GetRequiredService <JsonSerializerSettings>(); }
/// <summary> /// Creates a new instance of this Rhino.Agent.Controllers.ConfigurationsController. /// </summary> /// <param name="provider"><see cref="IServiceProvider"/> to use with this Rhino.Agent.Controllers.ConfigurationsController.</param> public ConfigurationsController(IServiceProvider provider) { repository = provider.GetRequiredService <RhinoConfigurationRepository>(); }
/// <summary> /// Creates a new instance of this Rhino.Agent.Controllers.TestsController. /// </summary> /// <param name="provider"><see cref="IServiceProvider"/> to use with this Rhino.Agent.Controllers.TestsController.</param> public TestsController(IServiceProvider provider) { rhinoTest = provider.GetRequiredService <RhinoTestCaseRepository>(); rhinoConfiguration = provider.GetRequiredService <RhinoConfigurationRepository>(); }