Click here to Skip to main content
15,880,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
[TestMethod]
public void UnitTestMethod1()
{
    Test1Controller controller = new Test1Controller();

    //This call throws NullReferenceException "Object reference not set to an instance of an object."
    WebSecurity.Login("User1", "password1");

    controller.TestMethod();
}


In code above how to make WebSecurity.Login call work?

Thanks.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900