Esempio n. 1
0
 private void SendCommand(IData data)
 {
     _commandSink.ProcessCommand(data);
 }
        public void WithNewData_CommandShouldBeProcessed()
        {
            _dataSource.DataUpdated += Raise.FreeForm.With(_dataSource, new IntegerData(42));

            A.CallTo(() => _commandSink.ProcessCommand(new IntegerData(42))).MustHaveHappened();
        }