/// <summary> /// Factory method for creating a configured TestStore /// </summary> /// <returns></returns> public static TestStore CreateStoreWithEntityNotFoundBehaviorReturnNull() { var conventions = new StoreConventions(); conventions.SetEntityNotFoundBehavior(EntityNotFoundBehavior.ReturnNull); return(new TestStore(conventions)); }
public void SetEntityNotFoundBehavior_Sets__EntityNotFoundBehavior() { var conventions = new StoreConventions(); conventions.SetEntityNotFoundBehavior(EntityNotFoundBehavior.ReturnNull); conventions.EntityNotFoundBehavior.ShouldBe(EntityNotFoundBehavior.ReturnNull); }
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 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); }
/// <summary> /// Factory method for creating a configured TestStore /// </summary> /// <returns></returns> public static TestStore CreateStoreWithEntityNotFoundBehaviorReturnNull() { var conventions = new StoreConventions(); conventions.SetEntityNotFoundBehavior(EntityNotFoundBehavior.ReturnNull); return new TestStore(conventions); }