示例#1
0
 public CarBrandController(ILogger <CarBrandController> logger, ContextEntity context)
 {
     _logger  = logger;
     _context = new BaseEntityRepository <CarBrand>(context);
     _save    = new CarBrandSaveService(_context);
     _delete  = new CarBrandDeleteService(_context);
     _list    = new CarBrandListService(_context);
 }
 public void Setup()
 {
     this._repository = new  FakeBaseRepository <CarBrand>();
     this._service    = new CarBrandSaveService(_repository);
 }