示例#1
0
 public JsonConverterTests()
 {
     _converter = new JilJsonConverter();
     _id = Guid.NewGuid();
     _description = "xxx";
     _entityToSerialize = new AnotherEntity {Id = _id,Description = _description};
 }
示例#2
0
 public JsonConverterTests()
 {
     _converter = new JilJsonConverter();
     _id = DateTime.Now.Ticks;
     _description = "xxx";
     _entityToSerialize = new AnotherEntity {Id = _id,Description = _description};
 }
        public void Ctor_Providing_IJsonConverter_Sets_JsonConverter_And_TableInfo_To_Default()
        {
            var jsonConverter = new JilJsonConverter();

            var conventions = new StoreConventions(jsonConverter);

            conventions.JsonConverter.ShouldBeSameAs(jsonConverter);
            conventions.TableInfo.ShouldBeOfType<TableInfo>();
        }
示例#4
0
        public void Ctor_Providing_IJsonConverter_Sets_JsonConverter_And_TableInfo_To_Default()
        {
            var jsonConverter = new JilJsonConverter();

            var conventions = new StoreConventions(jsonConverter);

            conventions.JsonConverter.ShouldBeSameAs(jsonConverter);
            conventions.TableInfo.ShouldBeOfType <TableInfo>();
        }
示例#5
0
 public JsonConverterTests()
 {
     _converter         = new JilJsonConverter();
     _id                = Guid.NewGuid();
     _description       = "xxx";
     _entityToSerialize = new AnotherEntity {
         Id = _id, Description = _description
     };
 }
        public void Ctor_Sets_JsonConverter_And_TableInfo()
        {
            var jsonConverter = new JilJsonConverter();
            var info = new TableInfo();

            var convention = new StoreConventions(jsonConverter, info);

            convention.JsonConverter.ShouldBeSameAs(jsonConverter);
            convention.TableInfo.ShouldBeSameAs(info);
        }
示例#7
0
        public void Ctor_Sets_JsonConverter_And_TableInfo()
        {
            var jsonConverter = new JilJsonConverter();
            var info          = new TableInfo();

            var convention = new StoreConventions(jsonConverter, info);

            convention.JsonConverter.ShouldBeSameAs(jsonConverter);
            convention.TableInfo.ShouldBeSameAs(info);
        }