Esempio n. 1
0
        public void AddUserTest()
        {
            PostUserCommand postUserCommand = new PostUserCommand(_user);

            postUserCommand.Execute();
            var user = postUserCommand.GetResult();

            _insertedUsers.Add(user.Id);
            Assert.True(user.Id > 0);
        }
Esempio n. 2
0
        public void DeleteUserByIdTest()
        {
            PostUserCommand postUserCommand = new PostUserCommand(_user);

            postUserCommand.Execute();
            var user = postUserCommand.GetResult();
            DeleteUserByIdCommand deleteUserByIdCommand = new DeleteUserByIdCommand(user.Id);

            deleteUserByIdCommand.Execute();
            var id = deleteUserByIdCommand.GetResult();

            Assert.AreEqual(id, user.Id);
        }