public void CreateDraft_should_not_throw_exception() { var content = CreateContent(Status.Published); var command = new CreateContentDraft(); GuardContent.CanCreateDraft(command, content); }
public void CreateDraft_should_throw_exception_if_not_published() { var content = CreateContent(Status.Draft); var command = CreateCommand(new CreateContentDraft()); Assert.Throws <DomainException>(() => GuardContent.CanCreateDraft(command, content)); }