Example #1
0
        public void SendValidRecord()
        {
            PurchaseData purchaseDataToSend = new PurchaseData();

            purchaseDataToSend.CreateValidRecord();
            RabbitMQManager.Send(purchaseDataToSend);

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

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