public void ExecuteCommand_Successfully() { var payload = 1; var command = new CommandMockup { Payload = payload }; _commandService.ExecuteCommand(command); _gameLogicMockup.Received().CallMockup(Arg.Is(payload)); _networkService.Received().SendCommand(Arg.Is(command)); }
public void ExecuteCommand_Successfully() { var payload = 1; _commandService.ExecuteCommand(new CommandMockup { Payload = payload }); _gameLogicMockup.Received().CallMockup(Arg.Is(payload)); _callMockup.Received().SendMessageRequestMockCall(Arg.Is(nameof(CommandMockup)), Arg.Is <IDictionary <string, object> >(dic => (int)dic[nameof(CommandMockup.Payload)] == payload)); }