Esempio n. 1
0
        public int SetupUser()
        {
            var repos = new RepositoryUser(_uow);

            if (!repos.CheckIfUserExists(this.GetHostName()))
            {
                repos.CreatUser(this.GetHostName());
            }
            return(repos.GetUserId(this.GetHostName()));
        }
        public void ShouldGetUserIdFromUserName()
        {
            int?UID = repos.GetUserId("acer\\aspire");

            Assert.AreEqual(1, UID);
        }