Beispiel #1
0
        public void InviteMember_When_Have_No_Permission_Should_Return_Null()
        {
            var        groupOperations = new GroupOperations();
            Player     inviter         = new Player();
            Player     invitee         = new Player();
            Group      group           = new Group();
            Invitation invitation      = groupOperations.InviteMember(inviter, invitee, group);

            Assert.IsNull(invitation);
        }
Beispiel #2
0
        public void InviteMember_Should_Return_Invitation()
        {
            var        groupOperations = new GroupOperations();
            Player     inviter         = new Player();
            Player     invitee         = new Player();
            Group      group           = new Group();
            Invitation invitation      = groupOperations.InviteMember(inviter, invitee, group);

            Assert.AreEqual(inviter, invitation.Inviter);
            Assert.AreEqual(invitee, invitation.Invitee);
            Assert.AreEqual(group, invitation.Group);
        }
Beispiel #3
0
 public void InviteMember_When_Have_No_Permission_Should_Return_Null()
 {
     var groupOperations = new GroupOperations();
     Player inviter = new Player();
     Player invitee = new Player();
     Group group = new Group();
     Invitation invitation = groupOperations.InviteMember(inviter, invitee, group);
     Assert.IsNull(invitation);
 }
Beispiel #4
0
 public void InviteMember_Should_Return_Invitation()
 {
     var groupOperations = new GroupOperations();
     Player inviter = new Player();
     Player invitee = new Player();
     Group group = new Group();
     Invitation invitation = groupOperations.InviteMember(inviter, invitee, group);
     Assert.AreEqual(inviter, invitation.Inviter);
     Assert.AreEqual(invitee, invitation.Invitee);
     Assert.AreEqual(group, invitation.Group);
 }