public async Task GivenMemberService_WhenCallGetMemberByEmail_ShouldReturn() { // assign var member = MemberDataBuilder.CreateMember(1, null, null, null); _memberDataAccessor.GetByEmail(member.Email).Returns(member); // act var actualMember = await _memberService.GetMemberByEmail(member.Email); // assert actualMember.ShouldBe(member); }
public async Task <Member> GetMemberByEmail(string email) { return(await _memberDataAccessor.GetByEmail(email)); }