public void GetGroupByIdVk() { IGroupRepository groupRepository = new GroupRepositoryVk(); GroupService groupService = new GroupService(groupRepository); Group group = groupService.GetById("155418187"); Assert.AreEqual("Папуги :>", group.Name); Assert.AreEqual("papugi", group.ScreenName); }
public void GetGroupByUserIdVK() { IGroupRepository groupRepository = new GroupRepositoryVk(); GroupService groupService = new GroupService(groupRepository); List <Group> groups = groupService.Get("154951306", "5"); Assert.AreEqual(5, groups.Count); Assert.AreEqual("Папуги :>", groups[2].Name); }