private static void AddEmployees(IRespository <Employee> employeeRespository) { employeeRespository.Add(new Employee { Name = "keep" }); employeeRespository.Add(new Employee { Name = "wan" }); employeeRespository.Commit(); }
public BusinessLogic(ILoggerFactory log, ICoreConfiguration config, Settings settings, IRespository repository, ITest test) : base(log, config, null) { _settings = settings; _repository = repository; _test = test; }
public CustomersController(IRespository repository, IMapper mapper, ILogger <CustomersController> logger) { this.customerManager = new CustomerManager(repository); this.mapper = mapper; this.logger = logger; }
public StoryService() { _respository = new Repository(); }
public CustomerController(IRespository repository) { this.repository = repository; }
public HomeController(IRespository <Student> respository) { _respository = respository; }
public MovieService(IRespository <Movie> respository, IErrorHandler errorHandler, IMovieRepository movieRepository) { _respository = respository; _errorHandler = errorHandler; _movieRepository = movieRepository; }
public ItemBusiness(IRespository <Item> itemsRepo) { _itemsRepo = itemsRepo; }
public PersonService(IRespository <Person> personRespository, IUnitOfWork unitOfWork) { this._personRespository = personRespository; this._unitOfWork = unitOfWork; }
//public ProductCategoryManagerController(IRespository<ProductCategory> tproductCategory) //{ // this.context = tproductCategory; //} public ProductCategoryManagerController() { this.context = new InMemoryRespository <ProductCategory>(); }
public UsersController(IRespository repo, IMapper mapper) { _mapper = mapper; _repo = repo; }
public CustomerManager(IRespository repository) { this.repository = repository; }
public QAFModelService(IRespository repository) { _repository = repository; }
public BasketService(IRespository <Product> productContext, IRespository <Basket> basketContext) { this.basketContext = basketContext; this.productContext = productContext; }
public RemoveCommand(string[] data, IRespository respository) : base(data, respository) { }
public CreateCommand(string[] data, IRespository respository) : base(data, respository) { this.weaponFactory = new WeaponFactory(); }
public FuncionarioController(IRespository repo) { _repo = repo; }
private static void QueryEmployess(IRespository <Employee> employeeRespository) { var employee = employeeRespository.FindById(1); Console.WriteLine(employee.Name); }
public AddCommand(string[] data, IRespository respository) : base(data, respository) { this.gemFactory = new GemFactory(); }
private static void CountEmployees(IRespository <Employee> employeeRespository) { Console.WriteLine(employeeRespository.FindAll().Count()); }
public ProductCategoryManagerController(IRespository <ProductCategory> context) { this.context = context; }
public SysUserService(IRespository <SysUser> _sysUserRespository) { this.sysUserRespository = _sysUserRespository; }
public BudgetService(IRespository <Budget> budgetRespository) { _budgetRespository = budgetRespository; }
public JsonContextTest() { _respository = new Repository(); _storyService = new StoryService(); }
public ProductManagerController(IRespository <Product> productContext, IRespository <ProductCategory> productCategoryContext) { context = productContext; productCategories = productCategoryContext; }
//DI - Constructor Injection public MoviesController(IRespository <Movie> movieRespository, IMapper mapper, IMovieExample movieExample) { _movieRespository = movieRespository; _mapper = mapper; _movieExample = movieExample; }
public BugetService(IRespository respository) { _respository = respository; }
//public ProductManagerController(IRespository<Product> tproductContext, IRespository<ProductCategory> tproductCategory ) //{ // context = tproductContext; // productCategories = tproductCategory; //} public ProductManagerController() { context = new InMemoryRespository <Product>(); productCategories = new InMemoryRespository <ProductCategory>(); }
public HealthController(IRespository repository, ILogger <HealthController> logger) { this.repository = repository; this.logger = logger; logger.LogInformation("Health Check Initialized"); }
public PrintCommand(string[] data, IRespository respository) : base(data, respository) { }