Beispiel #1
0
        public void GetAllByUserGroupTest()
        {
            var repo          = new ParagonRepository();
            var userGroupName = "ula i kuba";
            var expectedNum   = 3;


            var actual = repo.GetAllByUserGroup(userGroupName);


            Assert.NotNull(actual);
            Assert.Equal(expectedNum, actual.Count);
        }
Beispiel #2
0
        public void GetAllByUserTest()
        {
            var repo        = new UserRepository();
            var parrepo     = new ParagonRepository();
            var userName    = "******";
            var expectedNum = 3;
            var user        = repo.GetByUsername(userName);


            var actuallist = parrepo.GetAllByUser(user);


            Assert.NotNull(actuallist);
            Assert.Equal(expectedNum, actuallist.Count);
        }