public CommonUnitTest()
 {
     _repository               = ServiceLocatorAdapter.Current.GetInstance <IRepository <Content2Tag> >();
     _businessService          = ServiceLocatorAdapter.Current.GetInstance <IBusinessService>();
     _facilityService          = ServiceLocatorAdapter.Current.GetInstance <IFacilityService>();
     _contentService           = ServiceLocatorAdapter.Current.GetInstance <IContentService>();
     _contentAttachmentService = ServiceLocatorAdapter.Current.GetInstance <IContentAttachmentService>();
 }
Beispiel #2
0
 public ContentsController(IContentService contentService, IContentAttachmentService contentAttachmentService, IMapper mapper, ILog4Net logger, IDropDownService dropDownService, IContentCategoryService contentCategoryService)
 {
     _dropDownService          = dropDownService;
     _contentService           = contentService;
     _contentAttachmentService = contentAttachmentService;
     _mapper = mapper;
     _logger = logger;
     _contentCategoryService = contentCategoryService;
 }
 public ContentAttachmentController(IContentAttachmentService contentAttachmentervice, IMapper mapper, ILog4Net logger)
 {
     _contentAttachmentService = contentAttachmentervice;
     _mapper = mapper;
     _logger = logger;
 }