예제 #1
0
        public void Should_return_null_if_not_found_in_context()
        {
            var policy = new DefaultPropertyIdPolicy();

            // when
            var propertyId = policy.GetPropertyId(typeof(NoContext).GetProperty("String"));

            // then
            propertyId.Should().BeNull();
        }
 public DefaultPropertyIdPolicyTests()
 {
     _policy = new DefaultPropertyIdPolicy(A.Fake <IContextProvider>());
 }
예제 #3
0
 public DefaultPropertyIdPolicyTests()
 {
     this.contextProvider = A.Fake <IContextProvider>();
     this.policy          = new DefaultPropertyIdPolicy(this.contextProvider);
 }