コード例 #1
0
        public void Init()
        {
            this.repository = MocksFactory.HashtagRepository;

            user = new User()
            {
                Id          = Guid.NewGuid().ToString(),
                UserName    = "******",
                Email       = "*****@*****.**",
                DisplayName = "Administrator"
            };

            coords = new GpsCoordinate
            {
                Id        = 129557542,
                Altitude  = 0,
                Latitude  = 41.1454754,
                Longitude = -8.6155655
            };

            location = new Location("Torre dos Clérigos", coords);
            var b = new BusinessHours {
                FromHour = new TimeSpan(9, 0, 0), ToHour = new TimeSpan(17, 59, 58)
            };

            poi = new PointOfInterest(location, "Mock POI", b, 3, user);
        }
コード例 #2
0
 public StoryUnitOfWork(IStoryContext context,
                        IStoryRepository stories,
                        ICommentRepository comments,
                        IHashtagRepository hashtags,
                        IGroupRepository groups
                        ) : base(context)
 {
     Stories  = stories;
     Comments = comments;
     Hashtags = hashtags;
     Groups   = groups;
 }
コード例 #3
0
 public ProjectsController(
     IProjectRepository projectRepository,
     IMapper mapper,
     IHashtagRepository hashtagRepository,
     IProgressRepository progressRepository,
     IKindOfProjectRepository kindOfProjectRepository)
 {
     _projectRepository       = projectRepository;
     _progressRepository      = progressRepository;
     _hashtagRepository       = hashtagRepository;
     _kindOfProjectRepository = kindOfProjectRepository;
     _mapper = mapper;
 }
コード例 #4
0
 public HashtagsController(IHashtagRepository hashtagRepository)
 {
     _hashtagRepository = hashtagRepository;
 }
コード例 #5
0
 // ninject will provide us with repo instance
 public HashtagsController(IHashtagRepository hashtagRepository)
 {
     _hashtagRepository = hashtagRepository;
 }
コード例 #6
0
 public MessageHashtagService(IHashtagRepository hashtagRepository, IMessageHashtagRepository messageHashtagRepository)
 {
     _hashtagRepository        = hashtagRepository;
     _messageHashtagRepository = messageHashtagRepository;
 }