public void when_adding_well_formed_member()
        {
            AddMemberToGroupTransaction transaction = new AddMemberToGroupTransaction("pankaj", "sharma",
               "*****@*****.**", 1);
            transaction.Execute();

            IRepository repo = new InMemoryRepository();
            Member member = repo.GetGroupDetails(1).GetMemberByEmail("*****@*****.**");

            Assert.IsNotNull(member);
        }
 public void when_lastName_invalid_throw_exception()
 {
     AddMemberToGroupTransaction transaction = new AddMemberToGroupTransaction("pankaj", "",
         "*****@*****.**", 1);
     transaction.Execute();
 }
 public void when_group_does_not_exist_throw_exception()
 {
     AddMemberToGroupTransaction transaction = new AddMemberToGroupTransaction("pankaj", "sharma",
         "*****@*****.**", 0);
     transaction.Execute();
 }
 public void when_email_invalid_throw_exception()
 {
     AddMemberToGroupTransaction transaction = new AddMemberToGroupTransaction("pankaj", "sharma",
         "pankaj@somecom", 1);
     transaction.Execute();
 }