public void Can_serialize_ComplexTypes()
        {
            var dto = new CreateStripeAccount
            {
                Country     = "Country",
                Email       = "*****@*****.**",
                LegalEntity = new StripeLegalEntity
                {
                    Dob = new StripeDate
                    {
                        Day   = 1,
                        Month = 1,
                        Year  = 1970,
                    }
                },
                TosAcceptance = new StripeTosAcceptance
                {
                    Date      = DateTime.UtcNow,
                    Ip        = "127.0.0.1",
                    UserAgent = "USER AGENT",
                }
            };

            var qs = QueryStringSerializer.SerializeToString(dto);

            qs.Print();

            Assert.That(qs, Does.Contain(
                            @"&legal_entity[dob][year]=1970&legal_entity[dob][month]=1&legal_entity[dob][day]=1"));
        }
        public void Can_serialize_ComplexTypes()
        {
            var dto = new CreateStripeAccount
            {
                Country = "Country",
                Email = "*****@*****.**",
                LegalEntity = new StripeLegalEntity
                {
                    Dob = new StripeDob
                    {
                        Day = 1,
                        Month = 1,
                        Year = 1970,
                    }
                },
                TosAcceptance = new StripeTosAcceptance
                {
                    Date = DateTime.UtcNow,
                    Ip = "127.0.0.1",
                    UserAgent = "USER AGENT",
                }
            };

            var qs = QueryStringSerializer.SerializeToString(dto);
            qs.Print();

            Assert.That(qs, Is.StringContaining(
                @"&legal_entity[dob][year]=1970&legal_entity[dob][month]=1&legal_entity[dob][day]=1"));
        }