GetProperty() public méthode

Get the property.
public GetProperty ( string name, Sitecore.Data.DataProviders.CallContext context ) : string
name string The property name.
context Sitecore.Data.DataProviders.CallContext The context. Ignored.
Résultat string
 public void ShouldResetPropertyAndReturnTheLatestValue(FakeDataProvider sut, string name, string value1, string value2, CallContext context)
 {
   sut.SetProperty(name, value1, context);
   sut.SetProperty(name, value2, context);
   sut.GetProperty(name, context).Should().Be(value2);
 }
 public void ShouldThrowIfNameIsNullOnGetProperty(FakeDataProvider sut)
 {
   Action action = () => sut.GetProperty(null, null);
   action.ShouldThrow<ArgumentNullException>().WithMessage("*name");
 }
 public void ShouldreturnNullIfNoPropertySet(FakeDataProvider sut, string name, CallContext context)
 {
   sut.GetProperty(name, context).Should().BeNull();
 }
 public void ShouldGetProperty(FakeDataProvider sut, string name, string value, CallContext context)
 {
   sut.SetProperty(name, value, context);
   sut.GetProperty(name, context).Should().Be(value);
 }