public NotificationMessagesController(INotificationMessagesService notificationMessagesService, IMapper mapper,
                                       IRequestContext requestContext)
 {
     _notificationMessagesService = notificationMessagesService;
     _mapper         = mapper;
     _requestContext = requestContext;
 }
        public NotificationMessagesServiceTests()
        {
            var mockMapper = new MapperConfiguration(cfg => { cfg.AddProfile(new AutoMapperProfile()); });

            var mapper = mockMapper.CreateMapper();

            _service = new NotificationMessagesService(_pushNotificationsClientMock.Object, mapper);
        }
Ejemplo n.º 3
0
 public NotificationMessagesController(INotificationMessagesService repository)
 {
     this.notificationMessagesService = repository;
 }