public void ClientIsRegistered() { ProducedEvents.ExpectOne <ClientRegistered>(e => { Assert.NotNull(e.AggregateId); Assert.Equal(_username, e.Username); Assert.Equal(_email, e.Email); Assert.Equal(_encryptedPassword, e.EncryptedPassword); Assert.Equal(_firstName, e.FirstName); Assert.Equal(_lastName, e.LastName); Assert.Equal(_addressLine, e.AddressLine); Assert.Equal(_city, e.City); Assert.Equal(_zip, e.Zip); Assert.Equal(_country, e.Country); Assert.Equal(_subscribedToOffers, e.SubscribedToOffers); }); }
public void produces_remote_created() => ProducedEvents.Should().Contain(Remote1Created);
public void doesnt_produce_customer_served() => ProducedEvents.Should().Contain(new CustomerTaken( SingleCustomerQueueId, CounterA_Name, Ticket1_Id));
public void doesnt_produce_customer_served() => ProducedEvents.Should().NotBeOfType <CustomerTaken>();
public void customer_revoked_event_is_produced() => ProducedEvents.Should().Contain(new CustomerRevoked( SingleCustomerQueueId, CounterA_Name, Ticket1_Id));
public void customer_served_event_not_produced_again_for_the_same_ticket() => ProducedEvents.Should().NotContain(new CustomerServed( SingleCustomerQueueId, CounterA_Name, Ticket1_Id));
public void doesnt_produce_remote_created() => ProducedEvents.Should().NotContain(EventOf <RemoteCreated>());
public void customer_taken_is_produced_for_next_ticket() => ProducedEvents.Should().Contain(new CustomerTaken( SingleCustomerQueueId, CounterA_Name, Ticket2_Id));
public void contains_counter_added_event() => ProducedEvents.Should().Contain(new CounterAdded( SingleCustomerQueueId, CounterA_Name));
public void doesnt_produce_analog_added() => ProducedEvents.Should().NotContain(EventOf <AnalogAdded>());
public void produces_analog_point_coordinate_changed() => ProducedEvents.Should().Contain(Analog1CoordinateUpdated);
public void ticket_added_event_is_not_produced() => ProducedEvents.Should().NotContain(new TicketAdded( SingleCustomerQueueId, Ticket2_Id, Ticket1_Number));
public void doesnt_produce_analog_point_coordinate_changed() => ProducedEvents.Should().NotContain(EventOf <AnalogCoordinateUpdated>());
public void produces_analog2_added() => ProducedEvents.Should().Contain(Analog2Added);
public void doesnt_produce_remote_created() => ProducedEvents.Should().NotContain(AssertionsHelpers.EventOf <RemoteCreated>());
public void customer_served_event_produced_for_previous_ticket() => ProducedEvents.Should().Contain(new CustomerServed( SingleCustomerQueueId, CounterA_Name, Ticket1_Id));
public void customer_taken_is_not_produced() => ProducedEvents.Should().NotContain( new CustomerTaken(SingleCustomerQueueId, CounterA_Name, Ticket2_Id));
public void after_ticked_added_also_customer_taken_is_produced() => ProducedEvents.Should().BeEquivalentTo( new TicketAdded(SingleCustomerQueueId, Ticket1_Id, Ticket1_Number), new CustomerTaken(SingleCustomerQueueId, CounterA_Name, Ticket1_Id));
public void ticket_added_event_exists() => ProducedEvents.Should().Contain(new TicketAdded( SingleCustomerQueueId, Ticket1_Id, Ticket1_Number));