public void ShouldNotBeUpdatedBy_UpdatedBy_When_Entity_Null_Fails_Assertion() { // Arrange IUpdatable entity = null; // Act & Assert Should.Throw <ShouldAssertException>(() => entity.ShouldNotBeUpdatedBy(updatedBy: Build <UserStub>())); }
public void ShouldNotBeUpdatedBy_UpdatedById_When_Entity_Null_Fails_Assertion() { // Arrange IUpdatable entity = null; // Act & Assert Should.Throw <ShouldAssertException>(() => entity.ShouldNotBeUpdatedBy(updatedById: Random.Long())); }