public TrainingRequest Create([PexAssumeUnderTest] TrainingRequestDAC target, TrainingRequest trainingRequest) { TrainingRequest result = target.Create(trainingRequest); return(result); // TODO: add assertions to method TrainingRequestDACTest.Create(TrainingRequestDAC, TrainingRequest) }
/// <summary> /// Apply business method. /// </summary> /// <param name="trainingRequest">A trainingRequest value.</param> /// <returns>Returns a TrainingRequest object.</returns> public TrainingRequest Apply(TrainingRequest trainingRequest) { TrainingRequest result = default(TrainingRequest); // Data access component declarations. var trainingRequestDAC = new TrainingRequestDAC(); Sequencer sequencer = Sequencer.Create(); trainingRequest.TRequestID = "TR" + sequencer.Next(); // Step 1 - Calling Create on TrainingRequestDAC. result = trainingRequestDAC.Create(trainingRequest); return(result); }