Beispiel #1
0
        /// <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);
        }
Beispiel #3
0
        public void SetEntityNotFoundBehavior_Sets__EntityNotFoundBehavior()
        {
            var conventions = new StoreConventions();

            conventions.SetEntityNotFoundBehavior(EntityNotFoundBehavior.ReturnNull);

            conventions.EntityNotFoundBehavior.ShouldBe(EntityNotFoundBehavior.ReturnNull);
        }
Beispiel #4
0
 /// <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);
 }