// Constructor with injected dependencies public ProductSkusController( ICoffeeRepository coffeeRepository, IBrewerRepository brewerRepository ) { mCoffeeRepository = coffeeRepository; mBrewerRepository = brewerRepository; }
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; }
public BrewersController(IBrewerRepository brewerRepository, ICalculationService calculationService) { mBrewerRepository = brewerRepository; mCalculationService = calculationService; }
public BeerService(IBrewerRepository brewerRepository, IBeerRepository beerRepository) { _brewerRepository = brewerRepository; _beerRepository = beerRepository; }
public BrewerService(IBrewerRepository brewerRepository) { _brewerRepository = brewerRepository; }
public BrewersController(IBrewerRepository brewerRepository, ICalculationService calculationService, IPageUrlRetriever pageUrlRetriever) { this.brewerRepository = brewerRepository; this.calculationService = calculationService; this.pageUrlRetriever = pageUrlRetriever; }
// When someone GETs a coffee, create connection public ExampleController(IBrewerRepository brewerRepository) { _brewerRepository = brewerRepository; }