Пример #1
0
        public void SetUp()
        {
            _repo = new Mock <IGetCourseContentRepository>();
            _currentUserAccessor = new Mock <ICurrentUserAccessor>();
            _sut = new GetCourseContentService(_repo.Object, _currentUserAccessor.Object);

            _currentUserAccessor.Setup(x => x.OrganizationId).Returns("organizationId");
        }
        public void SetUp()
        {
            _repo = new Mock <IGetCourseContentRepository>();
            _currentUserAccessor = new Mock <ICurrentUserAccessor>();
            _sut = new GetCourseContentService(_repo.Object, _currentUserAccessor.Object);

            _currentUserAccessor.Setup(x => x.UserId).Returns("learnerId");
            _currentUserAccessor.Setup(x => x.LearningPathId).Returns("learningPathId");
        }