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); }
public StoryUnitOfWork(IStoryContext context, IStoryRepository stories, ICommentRepository comments, IHashtagRepository hashtags, IGroupRepository groups ) : base(context) { Stories = stories; Comments = comments; Hashtags = hashtags; Groups = groups; }
public ProjectsController( IProjectRepository projectRepository, IMapper mapper, IHashtagRepository hashtagRepository, IProgressRepository progressRepository, IKindOfProjectRepository kindOfProjectRepository) { _projectRepository = projectRepository; _progressRepository = progressRepository; _hashtagRepository = hashtagRepository; _kindOfProjectRepository = kindOfProjectRepository; _mapper = mapper; }
public HashtagsController(IHashtagRepository hashtagRepository) { _hashtagRepository = hashtagRepository; }
// ninject will provide us with repo instance public HashtagsController(IHashtagRepository hashtagRepository) { _hashtagRepository = hashtagRepository; }
public MessageHashtagService(IHashtagRepository hashtagRepository, IMessageHashtagRepository messageHashtagRepository) { _hashtagRepository = hashtagRepository; _messageHashtagRepository = messageHashtagRepository; }