public async Task When_Settings_Are_Exported_Then_EventsAreLogged_And_Operation_Is_Called()
        {
            // ARRANGE
            InitializeFakeObjects();

            // ACT
            await _exportAction.Execute();

            // ASSERTS
            _managerEventSourceStub.Verify(m => m.StartToExport());
            _getClientsActionStub.Verify(g => g.Execute());
            _managerEventSourceStub.Verify(m => m.FinishToExport());
        }
Пример #2
0
 public Task <ExportResult> Export()
 {
     return(_exportAction.Execute());
 }