Пример #1
0
        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);
        }
Пример #3
0
        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);
        }
Пример #5
0
 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;
 }
Пример #8
0
 public GetImportNotificationCommentsUsersHandler(IImportNotificationCommentRepository repository, IInternalUserRepository internalUserRepository)
 {
     this.repository             = repository;
     this.internalUserRepository = internalUserRepository;
 }