C# in Code Testing.
I am attempting to add test code to a C# application so that I can automate testing on the file and functionality of the application.
My first issue comes from when I include 'using AutomatedQA.script;' in my source file
many of my variable declarations now have an error which states: Cannot implicitly convert type 'System.Web.HttpCookie' to 'AutomatedQA.script.var'
An example of where this occurs is: var requestCookie = Request.Cookies[AntiXsrfTokenKey];
I am stumped as to why the referance of AutomatedQA.script is somehow overriding things.
My second issue is I am unsure how to write the testing portion, here is a sample of what I am going to start with, I just don't know if it is in the right direction or not.
var conn = Connect.Sys;
var usernameobject = Connect.Integration["GetObjectByName"]("username");
usernameobject["Click"]();
This is written at the end of source file.
Any insight is appreciated, and I have also already read the Smartbear articles on C# connected applications.