public void DateFormatConverter_SerializesToExpectedStringWhenPropertyIsDateTimeOffsetMinValue()
        {
            var testEntity = new DateFormatConverterTestEntity {
                Created = DateTimeOffset.MinValue
            };

            Assert.AreEqual("{\"Created\":\"0000-00-00\"}", JsonConvert.SerializeObject(testEntity));
        }
        public void DateFormatConverter_SerializesToExpectedString()
        {
            var expectedDate = "2019-08-12";
            var testEntity   = new DateFormatConverterTestEntity {
                Created = DateTimeOffset.Parse(expectedDate)
            };

            Assert.AreEqual($"{{\"Created\":\"{expectedDate}\"}}", JsonConvert.SerializeObject(testEntity));
        }
        public void BoolStringConverter_SerializesToNullWhenPropertyHasNoValue()
        {
            var testEntity = new DateFormatConverterTestEntity();

            Assert.AreEqual("{\"Created\":null}", JsonConvert.SerializeObject(testEntity));
        }