public void Should_concatenate_with_separator_depending_on_class_id(string issueClassStr, string expectedPropertyId) { // given Uri issueClassId = new Uri(issueClassStr); // when var propertyId = _policy.GetPropertyId(typeof(Issue).GetProperty("Title"), issueClassId); // then propertyId.Should().Be(expectedPropertyId); }
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(); }