/// <summary> /// Ctor /// </summary> public CatTest() { services = new ServiceCollection(); var serviceProvider = services.AddFaceMashDalService() .AddLogging() .BuildServiceProvider(); _facemashDalService = serviceProvider.GetService <IFacemashDalService>(); }
/// <summary> /// Ctor /// </summary> /// <param name="facemashDalService"></param> public CatController(IFacemashDalService facemashDalService, ILogger <CatController> logger) { _facemashDalService = facemashDalService; _logger = logger; }