public void Should_send_message_to_group_impl() { var skypeClient = new Skype_Client(new Skype()); var users = new List<SkypeClient.User>(); users.Add(new SkypeClient.User("testgogroups")); users.Add(new SkypeClient.User("jonny.plankton")); var userGroup = new UserGroup(skypeClient, users, "Trumps_trunk"); userGroup.Send(Guid.NewGuid().ToString()); }
public void Should_send_group_a_message() { string name = "someName"; var message = "Some message"; var users = new List<User>(); _messengerClient.Expect(x => x.SetUserList(users)); _messengerClient.Expect(x => x.SendMessage(message, name)); var group = new UserGroup(_messengerClient, users, name); group.Send(message); _messengerClient.VerifyAllExpectations(); }