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>()); }
public DefaultPropertyIdPolicyTests() { this.contextProvider = A.Fake <IContextProvider>(); this.policy = new DefaultPropertyIdPolicy(this.contextProvider); }