/// <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); }
/// <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); }