Tests.Recommend_a_friend.When_a_user_signs_up_with_a_referral_from_a_friend C# (CSharp) Метод

When_a_user_signs_up_with_a_referral_from_a_friend() приватный Метод

private When_a_user_signs_up_with_a_referral_from_a_friend ( ) : void
Результат void
        public void When_a_user_signs_up_with_a_referral_from_a_friend()
        {
            // test as much of the implementation as possible
            directory = new CustomerDirectory(new InMemoryDatabase());
            var policy = new ReferralPolicy();

            // cannot test emailing implementation - easier to stub
            emailer = MockRepository.GenerateStub<IEmailer>();

            service = new ReferAFriendService(directory, policy, emailer);

            service.ReferAFriend(referrerId, friendsDetails);
        }