public DeleteImportNotificationCommentHandlerTest() { this.repo = A.Fake <IImportNotificationCommentRepository>(); this.message = A.Fake <DeleteImportNotificationComment>(); this.handler = new DeleteImportNotificationCommentHandler(this.repo); }
public AddImportNotificationCommentsHandlerTests() { this.repo = A.Fake <IImportNotificationCommentRepository>(); A.CallTo(() => repo.Add(A <ImportNotificationComment> .Ignored)).Returns(Task.FromResult(true)); this.message = A.Fake <AddImportNotificationComment>(); this.handler = new AddImportNotificationCommentHandler(this.repo); }
public GetImportNotificationCommentsHandlerTests() { this.repo = A.Fake <IImportNotificationCommentRepository>(); this.mapper = A.Fake <IMap <ImportNotificationComment, 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 <GetImportNotificationComments>(); this.handler = new GetImportNotificationCommentsHandler(this.repo, this.mapper); }
public GetImportNotificationCommentsUsersHandlerTests() { this.repo = A.Fake <IImportNotificationCommentRepository>(); 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 <GetImportNotificationCommentsUsers>(); this.handler = new GetImportNotificationCommentsUsersHandler(this.repo, this.internalUserRepository); }
public GetImportNotificationCommentsHandler(IImportNotificationCommentRepository repository, IMap <ImportNotificationComment, InternalComment> mapper) { this.repository = repository; this.mapper = mapper; }
public CheckImportNotificationHasCommentsHandler(IImportNotificationCommentRepository repository) { this.repository = repository; }
public AddImportNotificationCommentHandler(IImportNotificationCommentRepository repository) { this.repository = repository; }
public GetImportNotificationCommentsUsersHandler(IImportNotificationCommentRepository repository, IInternalUserRepository internalUserRepository) { this.repository = repository; this.internalUserRepository = internalUserRepository; }