public void JsonString_PassingInvalidString_ReturnsNull()
        {
            //act
            var user = JsonHelpers.ConvertFromJson <User>("asddd");

            //assert
            Assert.AreEqual(null, user);
        }
        public void JsonString_PassingValidString_ReturnsUserObject()
        {
            //arrange
            string username = "******";
            string password = "******";
            long   id       = 1;
            string json     = string.Format("{{\"id\":\"{0}\",\"username\":\"{1}\",\"password\":\"{2}\"}}", id, username, password);

            //act
            var user = JsonHelpers.ConvertFromJson <User>(json);

            //assert
            Assert.AreEqual(id, user.Id);
            Assert.AreEqual(username, user.Username);
            Assert.AreEqual(password, user.Password);
        }