public void can_recover_response_element() { var sessionSource = new EdiSessionSource("SQLConnectionTest", false); var repo = new IncomingDocumentsRepository(sessionSource); DocumentInDTO orderDoc = repo.GetByDocumentControlNumberAndPartnerID(1006, BusinessPartner.Initech.Number); if (orderDoc == null) throw new Exception(string.Format("Control number {0} not found for business partner {1}.", 1006, BusinessPartner.Initech.Number)); orderDoc.ResponseElements.Count.ShouldEqual(1); orderDoc.ResponseElements[0].ElementName.ShouldEqual("REF02"); orderDoc.ResponseElements[0].Value.ShouldEqual("CAC33"); }
public void SetUp() { var sessionSource = new EdiSessionSource("SQLConnection", false); _incomingDocumentsRepository = new IncomingDocumentsRepository(sessionSource); }