コード例 #1
0
        public void SetUp()
        {
            _service    = new Mock <ICompleteUserSigningUpService>();
            _unitOfWork = new Mock <IUnitOfWork>();
            _mediator   = new Mock <IMediator>();
            _sut        = new CompleteSigningUpCommandHandler(_service.Object, _unitOfWork.Object, _mediator.Object);

            _command = new CompleteUserSigningUpCommand
            {
                SigningUpToken = "Token",
                UserName       = "******",
                Password       = "******"
            };

            _user = new User("email", "organization");
            _service.Setup(x => x.GetUserByInvitationToken(_command.SigningUpToken))
            .ReturnsAsync(_user);
        }
コード例 #2
0
        public void SetUp()
        {
            _service    = new Mock <ICompleteOrganizationSigningUpService>();
            _unitOfWork = new Mock <IUnitOfWork>();
            _mediator   = new Mock <IMediator>();
            _sut        = new CompleteSigningUpCommandHandler(_service.Object, _unitOfWork.Object, _mediator.Object);

            _command = new CompleteOrganizationSigningUpCommand
            {
                SigningUpToken   = "Token",
                OrganizationName = "organization name",
                UserName         = "******",
                Password         = "******"
            };

            SigninUpSetUp();
            OrganizationSetUp();
            GeneralLearningPathSetUp();
            AdminUserSetUp();
        }