public CreateCoffeePlaceTransaction(
     IUnitOfWork unitOfWork,
     ICoffeePlaceService coffeePlaceService)
     : base(unitOfWork)
 {
     _coffeePlaceService = coffeePlaceService;
 }
 public CoffeePlacesController(
     ICoffeePlaceService coffeePlaceService,
     ICreateCoffeePlaceTransaction createCoffeePlaceTransaction,
     IUpdateCoffeePlaceTransaction updateCoffeePlaceTransaction)
 {
     _coffeePlaceService           = coffeePlaceService;
     _createCoffeePlaceTransaction = createCoffeePlaceTransaction;
     _updateCoffeePlaceTransaction = updateCoffeePlaceTransaction;
 }
예제 #3
0
        public CoffeePlaceServiceTests()
        {
            _coffeePlaceRepository = Substitute.For <ICoffeePlaceRepository>();

            _coffeePlaceService = new CoffeePlaceService(_coffeePlaceRepository);
        }