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); }
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(); }