public GetFollowingModule(IFollowingRepository followingRepository, IFollowingMapper followingMapper, IGetUserResponseMapper getUserResponseMapper) { _followingRepository = followingRepository; _followingMapper = followingMapper; _getUserResponseMapper = getUserResponseMapper; }
protected CommandCreator(IOutputManager outputManager, ITimeProvider timeProvider, IMessagesRepository messagesRepository, IFollowingRepository followingRepository) { OutputManager = outputManager; TimeProvider = timeProvider; MessagesRepository = messagesRepository; FollowingRepository = followingRepository; }
public BlogService(IBlogRepository blogRepository, IFollowingRepository followingRepository, IFavoriteRepository favoriteRepository, IMapper mapper) { _blogRepository = blogRepository; _followingRepository = followingRepository; _favoriteRepository = favoriteRepository; _mapper = mapper; }
public UnitOfWork(ApplicationDbContext context) { _context = context; Gigs = new GigRepository(_context); Attendances = new AttendanceRepository(_context); Genres = new GenreRepository(_context); Follows = new FollowingRepository(_context); }
public UnitOfWork(ApplicationDbContext context) { _context = context; Activities = new ActivityRepository(context); Attendances = new AttendanceRepository(context); Categories = new CategoryRepository(context); Followings = new FollowingRepository(context); }
public FollowingService( IFollowingRepository repository, ITweetService tweetService ) { _repository = repository; _tweetService = tweetService; }
public CommandCreatorsFactory( IOutputManager outputManager, ITimeProvider timeProvider, IMessagesRepository messagesRepository, IFollowingRepository followingRepository) { CommandCreators.Add(new PostMessageCommandCreator(outputManager, timeProvider, messagesRepository, followingRepository)); CommandCreators.Add(new ListMessagesCommandCreator(outputManager, timeProvider, messagesRepository, followingRepository)); CommandCreators.Add(new FollowUserCommandCreator(outputManager, timeProvider, messagesRepository, followingRepository)); CommandCreators.Add(new ShowWallOfUserCommandCreator(outputManager, timeProvider, messagesRepository, followingRepository)); }
public Handler(IApplicationUserRepository applicationUserrepository, IExhibitRepository exhibitRepository, IFollowingRepository followingRepository, IAttendanceRepository attendanceRepository, IUrlComposer urlComposer) { _applicationUserRepository = applicationUserrepository; _exhibitRepository = exhibitRepository; _followingRepository = followingRepository; _attendanceRepository = attendanceRepository; _urlComposer = urlComposer; }
public FollowUserCommand( IOutputManager outputManager, IFollowingRepository followingRepository, string username1, string username2) : base(outputManager) { Username1 = username1; Username2 = username2; this.followingRepository = followingRepository; }
public FollowingService( ILogger <IFollowingRepository> logger, IFollowingRepository followingRepository, IApiFollowingRequestModelValidator followingModelValidator, IBOLFollowingMapper bolfollowingMapper, IDALFollowingMapper dalfollowingMapper) : base(logger, followingRepository, followingModelValidator, bolfollowingMapper, dalfollowingMapper) { }
public AbstractFollowingService( ILogger logger, IFollowingRepository followingRepository, IApiFollowingRequestModelValidator followingModelValidator, IBOLFollowingMapper bolFollowingMapper, IDALFollowingMapper dalFollowingMapper) : base() { this.FollowingRepository = followingRepository; this.FollowingModelValidator = followingModelValidator; this.BolFollowingMapper = bolFollowingMapper; this.DalFollowingMapper = dalFollowingMapper; this.logger = logger; }
public FollowingService( ILogger <IFollowingService> logger, MediatR.IMediator mediator, IFollowingRepository followingRepository, IApiFollowingServerRequestModelValidator followingModelValidator, IDALFollowingMapper dalFollowingMapper) : base() { this.FollowingRepository = followingRepository; this.FollowingModelValidator = followingModelValidator; this.DalFollowingMapper = dalFollowingMapper; this.logger = logger; this.mediator = mediator; }
public UnitOfWork(ApplicationDbContext context, IGigRepository gigRepository, IAttendanceRepository attendanceRepository, IFollowingRepository followingRepository, IGenreRepository genreRepository, INotificationRepository notificationRepository) { _context = context; Gigs = gigRepository; Attendances = attendanceRepository; Followings = followingRepository; Genres = genreRepository; Notifications = notificationRepository; }
public UnitOfWork(ApplicationDbContext _db, IAttendanceRepository attendanceRepository, IGigRepository gigRepository, IGenreRepository genreRepository, IApplicationUserRepository applicationUserRepository, IFollowingRepository followingRepository, INotificationRepository notificationRepository) { this._db = _db; this.Attendance = attendanceRepository; this.Gig = gigRepository; this.Genre = genreRepository; this.ApplicationUser = applicationUserRepository; this.Following = followingRepository; this.Notification = notificationRepository; }
public UnitOfWork(ApplicationDbContext context, IShelfRepository shelfRepository, IFollowingRepository followingRepository, IItemRepository bookRepository, IBookDetailRepository bookDetails, IBookAuthorRepository bookAuthors, IAuthorRepository authors, IItemBookDetailRepository itemBookDetails) { _context = context; Shelves = shelfRepository; Followings = followingRepository; Items = bookRepository; BookDetails = bookDetails; BookAuthors = bookAuthors; Authors = authors; ItemBookDetails = itemBookDetails; }
public ShowWallOfUserCommand( IOutputManager outputManager, ITimeProvider timeProvider, IMessagesRepository messagesRepository, IFollowingRepository followingRepository, string username) : base(outputManager) { this.timeProvider = timeProvider; this.messagesRepository = messagesRepository; this.followingRepository = followingRepository; Username = username; }
public AbstractApiFollowingRequestModelValidator(IFollowingRepository followingRepository) { this.followingRepository = followingRepository; }
public ArtPostController(IArtPostRepository artPostRepository, IFollowingRepository followingRepository, IFavoritesRepository favoritesRepository) { _artPostRepository = artPostRepository; _followingRepository = followingRepository; _favoritesRepository = favoritesRepository; }
public Handler(IFollowingRepository repository) => _repository = repository;
public FollowingsController(IFollowingRepository followingRepository, IUserDataRepository userDataRepository) { _followingRepository = followingRepository; _userDataRepository = userDataRepository; }
public FollowingController(IFollowingRepository followingRepository, IArtPostRepository artPostRepository) { _followingRepository = followingRepository; _artPostRepository = artPostRepository; }
public CommentRepository(IBlackListMockRepository blackListMockRepository, ContextDB contextDB, IFollowingRepository followingRepository) { context = contextDB; this.followingRepository = followingRepository; this.blackListMockRepository = blackListMockRepository; }
public void Init() { List <Tweet> tweets = new List <Tweet> { new Tweet { UserId = "2", Text = "First" }, new Tweet { UserId = "2", Text = "Second" } }; var tweets2 = new List <Tweet> { new Tweet { UserId = "3", Text = "Third" } }; var tweetServiceMock = new Mock <ITweetService>(); tweetServiceMock.Setup(t => t.GetTweetsBy("2")) .Returns(Task.FromResult(tweets)); tweetServiceMock.Setup(t => t.GetTweetsBy("3")) .Returns(Task.FromResult(tweets2)); List <Following> followers = new List <Following>(); followers.Add(new Following { FollowerId = "10", FolloweeId = "1" }); followers.Add(new Following { FollowerId = "11", FolloweeId = "1" }); followers.Add(new Following { FollowerId = "12", FolloweeId = "1" }); List <Following> followees = new List <Following>(); followees.Add(new Following { FollowerId = "20", FolloweeId = "2" }); followees.Add(new Following { FollowerId = "20", FolloweeId = "3" }); var repoMock = new Mock <IFollowingRepository>(); repoMock.Setup(r => r.GetAllFollowersOf("1")) .Returns(Task.FromResult(followers)); repoMock.Setup(r => r.GetAllFolloweesFrom("20")) .Returns(Task.FromResult(followees)); // repoMock.Setup(r => r.ExistFollowing(new Following {FollowerId = "11", FolloweeId = "1"})) repoMock.Setup(r => r.ExistFollowing(It.IsAny <Following>())) .Returns(Task.FromResult(true)); _repository = repoMock.Object; _service = new FollowingService(_repository, tweetServiceMock.Object); }
public ApiFollowingServerRequestModelValidator(IFollowingRepository followingRepository) { this.FollowingRepository = followingRepository; }
public ReactionRepository(ContextDB contextDB, IBlackListMockRepository blackListRepository, IFollowingRepository followingRepository) { context = contextDB; this.followingRepository = followingRepository; this.blackListRepository = blackListRepository; }
public ListMessagesCommandCreator(IOutputManager outputManager, ITimeProvider timeProvider, IMessagesRepository messagesRepository, IFollowingRepository followingRepository) : base(outputManager, timeProvider, messagesRepository, followingRepository) { }
public ApiFollowingRequestModelValidator(IFollowingRepository followingRepository) : base(followingRepository) { }
public UpsertFollowingModule(IFollowingRepository followingRepository, IUserRepository userRepository) { _followingRepository = followingRepository; _userRepository = userRepository; }