Ejemplo n.º 1
0
        public void RecordWithDateWhenStoreClose()
        {
            PurchaseData purchaseDataToSend = new PurchaseData();

            purchaseDataToSend.CreateRecordWithDateWhenClose();
            RabbitMQManager.Send(purchaseDataToSend);

            PurchaseDataRecieve relevantPurchase = DalAccess.PullLastPurchasesData(purchaseDataToSend.StoreId);

            relevantPurchase.Should().ExistsCorrectlyInDbWithDateWhenClose(purchaseDataToSend);
        }
Ejemplo n.º 2
0
        public void InvalidCreditCasrNumber()
        {
            PurchaseData purchaseDataToSend = new PurchaseData();

            purchaseDataToSend.CreateInvalidCredirCardRecord();
            RabbitMQManager.Send(purchaseDataToSend);

            PurchaseDataRecieve relevantPurchase = DalAccess.PullLastPurchasesData(purchaseDataToSend.StoreId);

            relevantPurchase.Should().ExistsCorrectlyInDbWithCredirCardInvalid(purchaseDataToSend);
        }