public void SetUp() { controllerContext = new HttpControllerContext(); HttpContext.Current = new HttpContext(new HttpRequest(null, "http://localhost", null), new HttpResponse(null)); controllerContext.Request = new HttpRequestMessage(); controllerContext.Request.Headers.Add("Basic", "password"); controller = new notificationController(); controller.ControllerContext = controllerContext; }
// Use this for initialization void Start() { MainCamera = Camera.main; CurrentScreenState = ScreenStates.MainMenu; notificationBar = GameObject.Find("notificationBar"); notification = GameObject.Find("Notification").GetComponent<notificationController>(); homeScreenController = GameObject.Find("HomeScreenBackground").GetComponent<HomeScreenController>(); }