Exemplo 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()));
        }
Exemplo n.º 2
0
        public void ShouldCheckIfUserDoesNotExist()
        {
            bool userExists = repos.CheckIfUserExists("SomeNoob");

            Assert.AreEqual(false, userExists);
        }