public async Task ShipmentNumberLessThanExistingShipmentNumber() { rule = new PrenotificationOnlyNewShipmentsRule(repo); var movements = new List <PrenotificationMovement>() { new PrenotificationMovement() { ShipmentNumber = 1 } }; var result = await rule.GetResult(movements, notificationId); Assert.Equal(MessageLevel.Error.ToString(), result.MessageLevel.ToString()); }
public async Task ShipmentNumberGreaterThanExistingShipmentNumber() { rule = new PrenotificationOnlyNewShipmentsRule(repo); var movements = new List <PrenotificationMovement>() { new PrenotificationMovement() { ShipmentNumber = 3 } }; var result = await rule.GetResult(movements, notificationId); Assert.Equal(PrenotificationContentRules.OnlyNewShipments, result.Rule); Assert.Equal(MessageLevel.Success.ToString(), result.MessageLevel.ToString()); }