public async Task UpdateMonitoring_Should_UpdateStorageData() { //Arrange var updateMonitoringModel = new UpdateMonitoringModel(_siteId, _siteUri, _refreshTime); //Act await _target.UpdateMonitoring(updateMonitoringModel); //Asset _siteStorageMock.Verify(x => x.UpdateSiteInfo(_siteId, _siteUri, _refreshTime), Times.Once); }
public async Task UpdateMonitoring_Should_UpdateTrackingTimer() { //Arrange var updateMonitoringModel = new UpdateMonitoringModel(_siteId, _siteUri, _refreshTime); //Act await _target.UpdateMonitoring(updateMonitoringModel); //Asset _trackingTimerMock.Verify(x => x.Update(_siteId, _siteUri, _refreshTime), Times.Once); }
public async Task UpdateMonitoring_Should_NotifyClients() { //Arrange var updateMonitoringModel = new UpdateMonitoringModel(_siteId, _siteUri, _refreshTime); //Act await _target.UpdateMonitoring(updateMonitoringModel); //Asset _clientNotifierMock.Verify(x => x.UpdateSitesInfo(), Times.Once); }