public void RecordWithDateWhenStoreClose() { PurchaseData purchaseDataToSend = new PurchaseData(); purchaseDataToSend.CreateRecordWithDateWhenClose(); RabbitMQManager.Send(purchaseDataToSend); PurchaseDataRecieve relevantPurchase = DalAccess.PullLastPurchasesData(purchaseDataToSend.StoreId); relevantPurchase.Should().ExistsCorrectlyInDbWithDateWhenClose(purchaseDataToSend); }
public void InvalidCreditCasrNumber() { PurchaseData purchaseDataToSend = new PurchaseData(); purchaseDataToSend.CreateInvalidCredirCardRecord(); RabbitMQManager.Send(purchaseDataToSend); PurchaseDataRecieve relevantPurchase = DalAccess.PullLastPurchasesData(purchaseDataToSend.StoreId); relevantPurchase.Should().ExistsCorrectlyInDbWithCredirCardInvalid(purchaseDataToSend); }