示例#1
0
        public void Arrange()
        {
            _membershipRepository = new Mock <IMembershipRepository>();

            _membershipRepository.Setup(x => x.GetCaller(It.IsAny <long>(), It.IsAny <string>()))
            .ReturnsAsync(new MembershipView {
                RoleId = (short)Role.Owner
            });

            _validator = new GetPreviousTransactionsCountRequestValidator(_membershipRepository.Object);
        }
示例#2
0
 public void Arrange()
 {
     _validator = new GetPreviousTransactionsCountRequestValidator();
 }