Example #1
0
 // Constructor with injected dependencies
 public ProductSkusController(
     ICoffeeRepository coffeeRepository,
     IBrewerRepository brewerRepository
     )
 {
     mCoffeeRepository = coffeeRepository;
     mBrewerRepository = brewerRepository;
 }
Example #2
0
 public BrewerService(
     IBrewerRepository brewerRepository,
     IUnitOfWork unitOfWork
     )
 {
     _brewerRepository = brewerRepository;
     _unitOfWork       = unitOfWork;
 }
        public void SetUp()
        {
            Fake().DocumentType <Brewer>(Brewer.CLASS_NAME);
            FakeManufacturers();
            FakePublicStatuses();

            var brewers = MockBrewers();

            repository = Substitute.For <IBrewerRepository>();
            repository.GetBrewers(null).Returns(brewers);
        }
 public BrewerController(IBrewerRepository brewerRepository, ILocationRepository locationRepository)
 {
     _brewerRepository   = brewerRepository;
     _locationRepository = locationRepository;
 }
 public BrewerFilterViewModel(IBrewerRepository repository)
     : this()
 {
     mBrewerRepository = repository;
 }
Example #6
0
 public BrewersController(IBrewerRepository brewerRepository, ICalculationService calculationService)
 {
     mBrewerRepository   = brewerRepository;
     mCalculationService = calculationService;
 }
Example #7
0
 public BeerService(IBrewerRepository brewerRepository, IBeerRepository beerRepository)
 {
     _brewerRepository = brewerRepository;
     _beerRepository   = beerRepository;
 }
 public BrewerService(IBrewerRepository brewerRepository)
 {
     _brewerRepository = brewerRepository;
 }
Example #9
0
 public BrewersController(IBrewerRepository brewerRepository, ICalculationService calculationService, IPageUrlRetriever pageUrlRetriever)
 {
     this.brewerRepository   = brewerRepository;
     this.calculationService = calculationService;
     this.pageUrlRetriever   = pageUrlRetriever;
 }
Example #10
0
 // When someone GETs a coffee, create connection
 public ExampleController(IBrewerRepository brewerRepository)
 {
     _brewerRepository = brewerRepository;
 }