public async Task GivenMemberService_WhenCallGetMemberById_ShouldReturn()
        {
            // assign
            var member = MemberDataBuilder.CreateMember(1, null, null, null);

            _memberDataAccessor.GetById(member.Id).Returns(member);

            // act
            var actualMember = await _memberService.GetMemberById(member.Id);

            // assert
            actualMember.ShouldBe(member);
        }
Exemple #2
0
 public async Task <Member> GetMemberById(long memberId)
 {
     return(await _memberDataAccessor.GetById(memberId));
 }