public void Get_Info_For_Proc() { IProceduresManager pm = new ProceduresManager(); List <string> list = pm.GetProcedureConstValues <string>(typeof(MoveProgramAttributeStartDateValue)); Assert.AreEqual(2, list.Count); }
public void GetProcedures_List_With_Proc_Info() { IProceduresManager pm = new ProceduresManager(); Program.DTO.GetMongoProceduresListResponse response = pm.GetProceduresList(new Program.DTO.GetMongoProceduresListRequest()); Assert.IsNotNull(response.Procedures); }
public GetMongoProceduresListResponse Get(GetMongoProceduresListRequest request) { GetMongoProceduresListResponse response = new GetMongoProceduresListResponse(); try { if (string.IsNullOrEmpty(request.UserId)) { throw new UnauthorizedAccessException("ProgramDD:Post()::Unauthorized Access"); } IProceduresManager pm = new ProceduresManager(); response = pm.GetProceduresList(request); response.Version = request.Version; } catch (Exception ex) { CommonFormatter.FormatExceptionResponse(response, base.Response, ex); string aseProcessID = ConfigurationManager.AppSettings.Get("ASEProcessID") ?? "0"; Common.Helper.LogException(int.Parse(aseProcessID), ex); } return(response); }