Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }