Пример #1
0
        public PersonServiceTests()
        {
            _personRepository      = Substitute.For <IPersonRepository>();
            _eventRoomRepository   = Substitute.For <IEventRoomRepository>();
            _coffeePlaceRepository = Substitute.For <ICoffeePlaceRepository>();

            _personService = new PersonService(_personRepository, _eventRoomRepository, _coffeePlaceRepository);
        }
Пример #2
0
 public PersonService(
     IPersonRepository personRepository,
     IEventRoomRepository eventRoomRepository,
     ICoffeePlaceRepository coffeePlaceRepository)
 {
     _personRepository      = personRepository;
     _eventRoomRepository   = eventRoomRepository;
     _coffeePlaceRepository = coffeePlaceRepository;
 }
Пример #3
0
        public CoffeePlaceServiceTests()
        {
            _coffeePlaceRepository = Substitute.For <ICoffeePlaceRepository>();

            _coffeePlaceService = new CoffeePlaceService(_coffeePlaceRepository);
        }
Пример #4
0
 public CoffeePlaceService(
     ICoffeePlaceRepository coffeePlaceRepository)
 {
     _coffeePlaceRepository = coffeePlaceRepository;
 }