public MockSetupContextWithJson() { _id = Guid.Parse("4fc99dd1-9aad-4d63-a247-75c9b72de204").ToString(); _name1 = "Foo"; _name2 = "f00Baz"; var body = new { id = _id, company1 = new { name = _name1 }, company2 = new { name = _name2 } }; _setup = new SetupContext(); _setup.Body(body); }
public MockSetupContextWithJson() { _id = Guid.Parse("4fc99dd1-9aad-4d63-a247-75c9b72de204").ToString(); _name1 = "Foo"; _name2 = "f00Baz"; var body = new { id = _id, company1 = new { name = _name1 }, company2 = new { name = _name2 } }; _setup = new SetupContext(); _setup.Body(body); }
public void BodySerializationMatch() { Assert.AreEqual(_setup.Body(), "{\"id\":\"4fc99dd1-9aad-4d63-a247-75c9b72de204\",\"company1\":{\"name\":\"Foo\"},\"company2\":{\"name\":\"f00Baz\"}}"); }