Beispiel #1
0
        public void GetREfDocTypesTest()
        {
            var docType  = new DocumentTypeModels();
            var docTypes = docType.GetReferenceDocumentTypes(InvoiceSubtypes.ValidationRuleSet.Government);

            Assert.IsNotNull(docTypes);
            var sel = docTypes.Where(x => x.CodeEnglish.StartsWith("Cancel"));

            Assert.AreEqual(0, sel.Count());
        }
Beispiel #2
0
 public RelatedDocumentViewModel(IUnityContainer uc, IDialogService dlg, DocumentTypeModels documentTypes) : base(uc, dlg)
 {
     // _refInvDate = DateTime.Today;
     _refComment = "";
     _refTypeList.DropDownList.Add(new DropDownListViewModel()
     {
         Code        = RefType.Keine.ToString(),
         DisplayText = "Kein Verweis"
     });
     _refTypeList.DropDownList.Add(new DropDownListViewModel()
     {
         Code        = RefType.Storno.ToString(),
         DisplayText = "Storno"
     });
     _refTypeList.DropDownList.Add(new DropDownListViewModel()
     {
         Code        = RefType.Verweis.ToString(),
         DisplayText = "Verweis"
     });
     _refSelectedDocType = "Invoice";
     _documentTypes      = documentTypes;
     _refDocTypes.GetList(_documentTypes.GetReferenceDocumentTypes(CurrentSelectedValidation));
 }