public void VerifyOrdersResource()
        {
            var json     = JsonTestFile.Read("OrdersEmbedded.json");
            var embedded = Deserialize <OrdersEmbedded>(json);

            embedded.ShouldNotBeNull();
        }
Пример #2
0
        public void VerifyOrdersResourceSerialization()
        {
            var resource = CreateOrdersResource();
            var json     = Serialize(resource);

            json.ShouldBe(JsonTestFile.Read("OrdersResource.json"));
        }
        public void VerifyOrdersResourceDeserialization()
        {
            var json     = JsonTestFile.Read("OrdersResource.json");
            var resource = Deserialize <OrdersResource>(json);

            resource.ShouldNotBeNull();
        }
        public void VerifySerialization()
        {
            var embedded = CreateOrdersEmbedded();
            var json     = Serialize(embedded);

            json.ShouldNotBeNull();
            json.ShouldBe(JsonTestFile.Read("OrdersEmbedded.json"));
        }