public async Task StartMonitoring_Should_StartTrackingTimer() { //Arrange var startMonitoringModel = new StartMonitoringModel(_siteUri, _refreshTime); //Act await _target.StartMonitoring(startMonitoringModel); //Asset _trackingTimerMock.Verify(x => x.Start(_siteId, _siteUri, _refreshTime), Times.Once); }
public async Task StartMonitoring_Should_NotifyClients() { //Arrange var startMonitoringModel = new StartMonitoringModel(_siteUri, _refreshTime); //Act await _target.StartMonitoring(startMonitoringModel); //Asset _clientNotifierMock.Verify(x => x.UpdateSitesInfo(), Times.Once); }
public async Task StartMonitoring_Should_AddDataToStorage() { //Arrange var startMonitoringModel = new StartMonitoringModel(_siteUri, _refreshTime); //Act await _target.StartMonitoring(startMonitoringModel); //Asset _siteStorageMock.Verify(x => x.AddSiteInfo(_siteId, _siteUri, _refreshTime), Times.Once); }