/// <summary> /// <para>Creates a new HermesScheduleItemRequestStatusValidator instance /// for the given entity and service</para> /// </summary> /// <exception cref="SelfDocumentingException">Wraps ArgumentNullException if either value is null</exception> /// <param name="entity">The HermesScheduleItemRequestStatus that is validated</param> /// <param name="hermesScheduleItemService"> /// HermesScheduleItemService instance that is used to verify the uniqueness or validity of certain fields /// in the validated entity /// </param> public HermesScheduleItemRequestStatusValidator( HermesScheduleItemRequestStatus entity, HermesScheduleItemService hermesScheduleItemService) : base(entity) { try { Helper.ValidateNotNull(entity, "entity", true); Helper.ValidateNotNull(hermesScheduleItemService, "hermesScheduleItemService", true); this.hermesScheduleItemService = hermesScheduleItemService; } catch (Exception e) { throw Helper.GetSelfDocumentingException(e, e.Message, "HermesNS.TC.Services.ScheduleItem.Validators.HermesScheduleItemRequestStatusValidator.ctor", new string[] { "hermesScheduleItemService" }, new object[] { this.hermesScheduleItemService }, new string[] { "entity", "hermesScheduleItemService" }, new object[] { entity, hermesScheduleItemService }, new string[0], new object[0]); } }
public void TestFixtureSetUp() { StressTestsHelper.LoadConfiguration(); // Create service for direct testing service = new HermesScheduleItemService(); // Host the HermesScheduleItemService HostHermesScheduleItemServiceAndOpenClient(); // Host the HermesAuditTrailSaveService HostHermesAuditTrailSaveService(); // Host the HermesAuditTrailRetrieveService HostHermesAuditTrailRetrieveServiceAndOpenClient(); // Host the GenericNoteService HostGenericNoteServiceAndOpenClient(); // Host the HermesAuthorizationService HostAuthService(); }
public void SetUp() { ConfigManager.GetInstance().Clear(); ConfigManager.GetInstance().LoadFile("../../test_files/failure/failure.xml"); service = new HermesScheduleItemService(); }