|
|
|
@ -75,6 +75,12 @@ namespace Squidex.Write.Tests.Apps |
|
|
|
Assert.Throws<DomainException>(() => sut.AssignContributor(new AssignContributor { ContributorId = contributorId })); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public void AssignContributor_should_throw_if_contributor_id_not_valid() |
|
|
|
{ |
|
|
|
Assert.Throws<DomainException>(() => sut.AssignContributor(new AssignContributor())); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public void AssignContributor_should_throw_if_single_owner_becomes_non_owner() |
|
|
|
{ |
|
|
|
@ -106,6 +112,12 @@ namespace Squidex.Write.Tests.Apps |
|
|
|
Assert.Throws<DomainException>(() => sut.RemoveContributor(new RemoveContributor { ContributorId = contributorId })); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public void RemoveContributor_should_throw_if_contributor_id_not_valid() |
|
|
|
{ |
|
|
|
Assert.Throws<DomainException>(() => sut.RemoveContributor(new RemoveContributor())); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public void RemoveContributor_should_throw_if_all_owners_removed() |
|
|
|
{ |
|
|
|
|