コード例 #1
0
        public async void unit_test_Create_success()
        {
            //Arrange
            HeaderRequest test = new HeaderRequest()
            {
                Username = "******",
                Email    = "*****@*****.**",
                Password = "******"
            };
            //Act
            var result = await _uut.Create(test);

            //Assert
            Xunit.Assert.IsType <OkResult>(result);
        }
コード例 #2
0
        public void Get_ViewResult_Create_Test()
        {
            //Arrange
            SignupController controller = new SignupController();

            //Act
            var result = controller.Create();

            //Assert
            Assert.IsType <ViewResult>(result);
        }