示例#1
0
        public void Should_remove_contributor()
        {
            sut.Assign("1", AppContributorPermission.Developer);
            sut.Remove("1");

            Assert.Empty(sut);
        }
示例#2
0
        public void Should_do_nothing_if_contributor_to_remove_not_found()
        {
            var contributors_1 = contributors_0.Remove("2");

            Assert.Empty(contributors_1);
        }
示例#3
0
 public static AppContributors Apply(this AppContributors contributors, AppContributorRemoved @event)
 {
     return(contributors.Remove(@event.ContributorId));
 }
示例#4
0
 public static void Apply(this AppContributors contributors, AppContributorRemoved @event)
 {
     contributors.Remove(@event.ContributorId);
 }