public void Can_specify_user_as_owner() { var sut = new Card(); var user = new User(); var userLink = new UserLink { User = user, LinkType = UserLinkType.Owner }; sut.UserLinks.Add(userLink); Assert.AreEqual(1, sut.UserLinks.Count); }
public void Can_add_a_user_to_a_card() { var sut = new Card(); var user = new User(); var userLink = new UserLink { User = user }; sut.UserLinks.Add(userLink); Assert.AreEqual(1, sut.UserLinks.Count); }