public async Task <JObject> SignUp([FromBody] JObject createAccount)
        {
            LogUrl();
            var newAccount  = _json.GetAccount(createAccount);
            var messageBack = _authentication.SignUp(newAccount);

            return(await messageBack);
        }
示例#2
0
        public void GetAccount()
        {
            var currentAccount = JObject.Parse(@"{ 
                 'Email':'*****@*****.**',
                 'Password':'******'}"
                                               );

            var result   = _json.GetAccount(currentAccount);
            var expected = new Account();

            expected.Email    = "*****@*****.**";
            expected.Password = "******";

            Assert.Equal(expected.Email, result.Email);
            Assert.Equal(expected.Password, result.Password);
        }