Esempio n. 1
0
        public void TerminalStateCallsShutdownOnExecution()
        {
            //given
            var target = new BeaconSendingTerminalState();

            // when
            target.Execute(context);

            // then
            context.Received(1).RequestShutdown();
        }
        public void ExecuteRequestsShutdown()
        {
            //given
            var target = new BeaconSendingTerminalState();

            // when
            target.Execute(mockContext);

            // then
            mockContext.Received(1).RequestShutdown();
            _ = mockContext.Received(2).IsShutdownRequested;
        }