public void when_change_status_with_same_status_twice_no_event_published() { _sut.Given(new OrderStatusChanged() { SourceId = _orderId, IsCompleted = true, Status = new OrderStatusDetail { OrderId = _orderId, Status = OrderStatus.Completed, IBSStatusId = VehicleStatuses.Common.Done } }); _sut.When(new ChangeOrderStatus { Status = new OrderStatusDetail { OrderId = _orderId, Status = OrderStatus.Completed, IBSStatusId = VehicleStatuses.Common.Done } }); Assert.AreEqual(false, _sut.ThenContains <OrderStatusChanged>()); Assert.AreEqual(0, _sut.Events.Count); }