public void CanPublish_should_throw_exception_if_already_published() { var command = new PublishSchema(); var schema_1 = schema_0.Publish(); Assert.Throws <DomainException>(() => GuardSchema.CanPublish(schema_1, command)); }
public void CanPublish_should_not_throw_exception_if_not_published() { var command = new PublishSchema(); GuardSchema.CanPublish(schema_0, command); }