public void Arrange() { _eventsApi = new Mock <IEventsApi>(); _eventsRepository = new Mock <IEventRepository>(); _service = new EventsApiService(_eventsApi.Object, _eventsRepository.Object); }
public EventsApiController(EventsApiService eventService, ICurrentUsernameProvider usernameProvider, IUserRepository userRepository, IRealtimeNotificationService notifyService) { _eventService = eventService; _usernameProvider = usernameProvider; _userRepository = userRepository; _notifyService = notifyService; }
public void TestSetup() { _eventsApiClientConfiguration = new Mock <IEventsSettings>(MockBehavior.Strict); _log = new Mock <ILog>(); _messageSession = new TestableMessageSession(); _eventsApiClientConfiguration.Setup(s => s.ApiEnabled).Returns(false); _sut = new EventsApiService(_eventsApiClientConfiguration.Object, _log.Object, _messageSession); }