public JsonConverterTests() { _converter = new JilJsonConverter(); _id = Guid.NewGuid(); _description = "xxx"; _entityToSerialize = new AnotherEntity {Id = _id,Description = _description}; }
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>(); }
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>(); }
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); }