Esempio n. 1
0
        public void Should_Create_A_User_In_The_Table()
        {
            var newUser = CreateNewUser();

            var db = new CreateUserCommand(_connectionString, newUser);
            db.Execute();

            var users = new GetAllUsersQuery(_connectionString).Execute();

            Assert.IsTrue(users.ToList().Count > 0);
        }
Esempio n. 2
0
        public void Should_Return_All_Users_In_The_Table()
        {
            var newUser = CreateNewUser();
            var dbCreate = new CreateUserCommand(_connectionString, newUser);
            dbCreate.Execute();

            var dbGet = new  GetAllUsersQuery(_connectionString);
            IEnumerable<User>  users = dbGet.Execute();
            Assert.IsTrue(users.ToList().Count > 0);
        }