public CanHandle ( |
||
configuration | The configuration. | |
context | Context | The context. |
return | bool |
public override bool CanHandle(AbstractPropertyConfiguration configuration, Context context)
{
return configuration is SitecoreNodeConfiguration;
}
}
public void CanHandle_ConfigIsNodeAndClassMapped_ReturnsTrue() { //Assign var config = new SitecoreNodeConfiguration(); var mapper = new SitecoreNodeMapper(); //Act var result = mapper.CanHandle(config, null); //Assert Assert.IsTrue(result); }