コード例 #1
0
        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());
 }