Exemplo n.º 1
0
 private static void AddEmployees(IRespository <Employee> employeeRespository)
 {
     employeeRespository.Add(new Employee {
         Name = "keep"
     });
     employeeRespository.Add(new Employee {
         Name = "wan"
     });
     employeeRespository.Commit();
 }
Exemplo n.º 2
0
 public BusinessLogic(ILoggerFactory log,
                      ICoreConfiguration config,
                      Settings settings,
                      IRespository repository,
                      ITest test)
     : base(log, config, null)
 {
     _settings   = settings;
     _repository = repository;
     _test       = test;
 }
Exemplo n.º 3
0
 public CustomersController(IRespository repository, IMapper mapper, ILogger <CustomersController> logger)
 {
     this.customerManager = new CustomerManager(repository);
     this.mapper          = mapper;
     this.logger          = logger;
 }
Exemplo n.º 4
0
 public StoryService()
 {
     _respository = new Repository();
 }
 public CustomerController(IRespository repository)
 {
     this.repository = repository;
 }
Exemplo n.º 6
0
 public HomeController(IRespository <Student> respository)
 {
     _respository = respository;
 }
Exemplo n.º 7
0
 public MovieService(IRespository <Movie> respository, IErrorHandler errorHandler, IMovieRepository movieRepository)
 {
     _respository     = respository;
     _errorHandler    = errorHandler;
     _movieRepository = movieRepository;
 }
Exemplo n.º 8
0
 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>();
        }
Exemplo n.º 11
0
        public UsersController(IRespository repo, IMapper mapper)
        {
            _mapper = mapper;

            _repo = repo;
        }
 public CustomerManager(IRespository repository)
 {
     this.repository = repository;
 }
Exemplo n.º 13
0
 public QAFModelService(IRespository repository)
 {
     _repository = repository;
 }
Exemplo n.º 14
0
 public BasketService(IRespository <Product> productContext, IRespository <Basket> basketContext)
 {
     this.basketContext  = basketContext;
     this.productContext = productContext;
 }
Exemplo n.º 15
0
 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;
 }
Exemplo n.º 18
0
        private static void QueryEmployess(IRespository <Employee> employeeRespository)
        {
            var employee = employeeRespository.FindById(1);

            Console.WriteLine(employee.Name);
        }
Exemplo n.º 19
0
 public AddCommand(string[] data, IRespository respository)
     : base(data, respository)
 {
     this.gemFactory = new GemFactory();
 }
Exemplo n.º 20
0
 private static void CountEmployees(IRespository <Employee> employeeRespository)
 {
     Console.WriteLine(employeeRespository.FindAll().Count());
 }
Exemplo n.º 21
0
 public ProductCategoryManagerController(IRespository <ProductCategory> context)
 {
     this.context = context;
 }
Exemplo n.º 22
0
 public SysUserService(IRespository <SysUser> _sysUserRespository)
 {
     this.sysUserRespository = _sysUserRespository;
 }
Exemplo n.º 23
0
 public BudgetService(IRespository <Budget> budgetRespository)
 {
     _budgetRespository = budgetRespository;
 }
Exemplo n.º 24
0
 public JsonContextTest()
 {
     _respository  = new Repository();
     _storyService = new StoryService();
 }
Exemplo n.º 25
0
 public ProductManagerController(IRespository <Product> productContext, IRespository <ProductCategory> productCategoryContext)
 {
     context           = productContext;
     productCategories = productCategoryContext;
 }
Exemplo n.º 26
0
 //DI - Constructor Injection
 public MoviesController(IRespository <Movie> movieRespository, IMapper mapper, IMovieExample movieExample)
 {
     _movieRespository = movieRespository;
     _mapper           = mapper;
     _movieExample     = movieExample;
 }
Exemplo n.º 27
0
 public BugetService(IRespository respository)
 {
     _respository = respository;
 }
Exemplo n.º 28
0
        //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)
 {
 }