public void AllowDeletion_WhenCalled_AssertDeletableIsTrue() { IDeletable sut = CreateSut(); sut.AllowDeletion(); Assert.That(sut.Deletable, Is.True); }
public static void SetDeletable(this IDeletable deletable, bool canDelete) { NullGuard.NotNull(deletable, nameof(deletable)); if (canDelete) { deletable.AllowDeletion(); return; } deletable.DisallowDeletion(); }