public DeleteNotificationCommentHandlerTests()
        {
            this.repo = A.Fake <INotificationCommentRepository>();

            this.message = A.Fake <DeleteNotificationComment>();
            this.handler = new DeleteNotificationCommentHandler(this.repo);
        }
Exemplo n.º 2
0
 public NotificationCommentController(INotificationRepository notificationRepository,
                                      INotificationCommentRepository notificationCommentRepository,
                                      IUserRepository userRepository)
 {
     _notificationRepository        = notificationRepository;
     _notificationCommentRepository = notificationCommentRepository;
     _userRepository = userRepository;
 }
Exemplo n.º 3
0
        public AddNotificationCommentsHandlerTests()
        {
            this.repo = A.Fake <INotificationCommentRepository>();

            A.CallTo(() => repo.Add(A <NotificationComment> .Ignored)).Returns(Task.FromResult(true));
            this.message = A.Fake <AddNotificationComment>();
            this.handler = new AddNotificationCommentHandler(this.repo);
        }
Exemplo n.º 4
0
        public GetNotificationCommentsHandlerTests()
        {
            this.repo   = A.Fake <INotificationCommentRepository>();
            this.mapper = A.Fake <IMap <NotificationComment, InternalComment> >();

            A.CallTo(() => repo.GetPagedComments(A <Guid> .Ignored, A <NotificationShipmentsCommentsType> .Ignored, A <int> .Ignored, A <int> .Ignored, A <DateTime> .Ignored, A <DateTime> .Ignored, A <int> .Ignored, A <String> .Ignored)).Returns(this.GetFakeComments());
            this.message = A.Fake <GetNotificationComments>();
            this.handler = new GetNotificationCommentsHandler(this.repo, this.mapper);
        }
        public GetNotificationCommentsUsersHandlerTests()
        {
            this.repo = A.Fake <INotificationCommentRepository>();
            this.internalUserRepository = A.Fake <IInternalUserRepository>();

            A.CallTo(() => repo.GetUsers(A <Guid> .Ignored, A <NotificationShipmentsCommentsType> .Ignored)).Returns(this.GetFakeUsers());
            A.CallTo(() => internalUserRepository.GetByUserId(A <Guid> .Ignored)).Returns(GetFakeInternalUser());
            this.message = A.Fake <GetNotificationCommentsUsers>();
            this.handler = new GetNotificationCommentsUsersHandler(this.repo, this.internalUserRepository);
        }
 public NotificationCommentController(INotificationRepository notificationRepository, INotificationCommentRepository notificationCommentRepository)
 {
     _notificationRepository = notificationRepository;
     _notificationCommentRepository = notificationCommentRepository;
 }
 public DeleteNotificationCommentHandler(INotificationCommentRepository repository)
 {
     this.repository = repository;
 }
Exemplo n.º 8
0
 public GetNotificationCommentsUsersHandler(INotificationCommentRepository repository, IInternalUserRepository internalUserRepository)
 {
     this.repository             = repository;
     this.internalUserRepository = internalUserRepository;
 }
Exemplo n.º 9
0
 public GetNotificationCommentsHandler(INotificationCommentRepository repository, IMap <NotificationComment, InternalComment> mapper)
 {
     this.repository = repository;
     this.mapper     = mapper;
 }
 public CheckNotificationHasCommentsHandler(INotificationCommentRepository repository)
 {
     this.repository = repository;
 }