示例#1
0
        /// <summary>
        /// Ctor
        /// </summary>
        public CatTest()
        {
            services = new ServiceCollection();
            var serviceProvider = services.AddFaceMashDalService()
                                  .AddLogging()
                                  .BuildServiceProvider();

            _facemashDalService = serviceProvider.GetService <IFacemashDalService>();
        }
示例#2
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="facemashDalService"></param>
 public CatController(IFacemashDalService facemashDalService,
                      ILogger <CatController> logger)
 {
     _facemashDalService = facemashDalService;
     _logger             = logger;
 }