public BookingSectorServiceTests()
 {
     unitOfWorkMock = new Mock <IUnitOfWork>();
     bookingSectorRepositoryMock = new Mock <IBaseRepository <BookingSector> >();
     sectorRepositoryMock        = new Mock <IBaseRepository <Sector> >();
     mapperConfiguration         = new MapperConfiguration(c =>
     {
         c.AddProfile <BookingSectorProfile>();
         c.AddProfile <SectorProfile>();
     });
     bookingSectorService = new BookingSectorService(unitOfWorkMock.Object, mapperConfiguration.CreateMapper());
 }
 public BookingSectorController(IBookingSectorService bookingSectorService)
 {
     this.bookingSectorService = bookingSectorService;
 }
Beispiel #3
0
 public SectorController(ISectorService sectorService, IBookingSectorService bookingSectorService)
 {
     this.sectorService        = sectorService;
     this.bookingSectorService = bookingSectorService;
 }