Esempio n. 1
0
        public void calls_to_the_handler_if_one_matches_the_json()
        {
            var message = new RunSpec {
                id = "foo"
            };
            var json = JsonSerialization.ToCleanJson(message);

            theRunner.HandleJson(json);

            theCommand.Received.Single()
            .id.ShouldBe("foo");

            theRemoteController.DidNotReceive().SendJsonMessage(json);
        }