public void Should_remove_contributor() { sut.Assign("1", AppContributorPermission.Developer); sut.Remove("1"); Assert.Empty(sut); }
public void Should_do_nothing_if_contributor_to_remove_not_found() { var contributors_1 = contributors_0.Remove("2"); Assert.Empty(contributors_1); }
public static AppContributors Apply(this AppContributors contributors, AppContributorRemoved @event) { return(contributors.Remove(@event.ContributorId)); }
public static void Apply(this AppContributors contributors, AppContributorRemoved @event) { contributors.Remove(@event.ContributorId); }