コード例 #1
0
ファイル: UnitTest1.cs プロジェクト: HeyIshika/APIWORKS
        public void Test1()
        {
            //Arrange
            using (var context = new updatepasswordContext(CreateNewContextOptions()))
            {
                changepasswordController obj  = new changepasswordController(context);
                UpdatePassword           obj1 = new UpdatePassword()
                {
                    Email        = "*****@*****.**",
                    PasswordSalt = "abcd",
                    PasswordHash = "abcd"
                };

                //Act

                var result = obj.GetAll();



                //Assert

                Assert.IsType <Task <List <UpdatePassword> > >(result);
            }
        }
コード例 #2
0
          public changepasswordController(updatepasswordContext context){

              _context=context;
          }