Beispiel #1
0
        public void WhenGettingEntityAsAStringItShouldSerializeIt()
        {
            var entityMock = new EntityMock
            {
                Name                  = "Peter Parker",
                ["shoe_size"]         = 12,
                ["coffee_preference"] = "cappuccino"
            };

            entityMock.ToString().JsonEquals(@"{
              ""name"": ""Peter Parker"",
              ""shoe_size"": 12,
              ""coffee_preference"": ""cappuccino""
            }");
        }