Beispiel #1
0
        public ActionResult <SignUpFormResponse> Post([FromBody] SignUpForm signUpForm)
        {
            SignUpFormResponse signUpFormResponse = _userBiz.RegistorUser(signUpForm);

            return(Ok(signUpFormResponse));
        }
Beispiel #2
0
        public void UnitTest1()
        {
            var ActualResult = _userBiz.RegistorUser(null);

            Assert.NotNull(ActualResult);
            Assert.True(ActualResult.StatusCode == 400);
            Assert.NotNull(ActualResult.ErrorList);
            Assert.True(ActualResult.ErrorList.Count > 0);
        }