public DeleteNotificationCommentHandlerTests() { this.repo = A.Fake <INotificationCommentRepository>(); this.message = A.Fake <DeleteNotificationComment>(); this.handler = new DeleteNotificationCommentHandler(this.repo); }
public NotificationCommentController(INotificationRepository notificationRepository, INotificationCommentRepository notificationCommentRepository, IUserRepository userRepository) { _notificationRepository = notificationRepository; _notificationCommentRepository = notificationCommentRepository; _userRepository = userRepository; }
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); }
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; }
public GetNotificationCommentsUsersHandler(INotificationCommentRepository repository, IInternalUserRepository internalUserRepository) { this.repository = repository; this.internalUserRepository = internalUserRepository; }
public GetNotificationCommentsHandler(INotificationCommentRepository repository, IMap <NotificationComment, InternalComment> mapper) { this.repository = repository; this.mapper = mapper; }
public CheckNotificationHasCommentsHandler(INotificationCommentRepository repository) { this.repository = repository; }