示例#1
0
 /// <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;
 }
示例#2
0
 /// <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>();
 }
示例#5
0
 /// <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>();
 }