Пример #1
0
        /*
        public string AppId { get; set; }
        public string NM_LONG { get; set; }
        public string RTO { get; set; }
        public string AppType { get; set; }
        public string RAG { get; set; }
        public string OPERATE_MANAGER { get; set; }
        public string AD_MANAGER { get; set; }
        public string L1_MANAGER { get; set; }
        public string L2_MANAGER { get; set; }
        public string DESIGN_AUTHORITY { get; set; }*/
        private static P1AppsController GetP1AppsController(MvcApplication8.DAL.IApplicationRepository repository)
        {
            P1AppsController controller = new P1AppsController(repository);

            controller.ControllerContext = new ControllerContext()
            {
                Controller = controller,
                RequestContext = new RequestContext(new MockHttpContext(), new RouteData())
            };
            return controller;
        }
Пример #2
0
 public void Add(MvcApplication8.Models.Application appToAdd)
 {
     _db.Add(appToAdd);
 }