Example #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;
 }
Example #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>();
 }
Example #3
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>();
 }