예제 #1
0
        public void SetUp()
        {
            autoFaker = new AutoFakerFactory()
                        .AddDraftsBuilderEntitiesGeneration()
                        .Create();

            var payerInn   = autoFaker.Generate <Inn>();
            var senderInn  = autoFaker.Generate <Inn>();
            var senderCert = autoFaker.Generate <byte[]>();
            var ifnsCode   = autoFaker.Generate <IfnsCode>();
            var mriCode    = autoFaker.Generate <MriCode>();

            payer     = DraftPayer.IndividualEntrepreneur(payerInn);
            sender    = DraftSender.IndividualEntrepreneur(senderInn, senderCert);
            recipient = DraftRecipient.Ifns(ifnsCode, mriCode);

            expectedRequestPrototype = new DraftsBuilderMetaRequest(
                new SenderRequest
            {
                Inn         = senderInn.ToString(),
                Certificate = new PublicKeyCertificateRequest
                {
                    Content = senderCert
                }
            },
                new AccountInfoRequest
            {
                Inn = payerInn.ToString()
            },
                new RecipientInfoRequest
            {
                IfnsCode = ifnsCode,
                MriCode  = mriCode
            },
 public static DraftsBuilderMetadata FnsInventoryDraftsBuilder(
     DraftPayer payer,
     DraftSender sender,
     DraftRecipient recipient,
     FnsInventoryDraftsBuilderData data) => new(