Beispiel #1
0
        private Mock <IPublishedContent> SetupAnotherAccountUsingThisEmail(string email)
        {
            var otherMember = new Mock <IPublishedContent>();

            otherMember.Setup(x => x.Name).Returns("Other member");
            otherMember.Setup(x => x.Key).Returns(Guid.NewGuid());
            MemberCache.Setup(x => x.GetByEmail(email)).Returns(otherMember.Object);
            return(otherMember);
        }