Ejemplo n.º 1
0
 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);
     });
 }
Ejemplo n.º 2
0
 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));
Ejemplo n.º 4
0
 public void doesnt_produce_customer_served() => ProducedEvents.Should().NotBeOfType <CustomerTaken>();
Ejemplo n.º 5
0
 public void customer_revoked_event_is_produced() => ProducedEvents.Should().Contain(new CustomerRevoked(
                                                                                         SingleCustomerQueueId,
                                                                                         CounterA_Name,
                                                                                         Ticket1_Id));
Ejemplo n.º 6
0
 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>());
Ejemplo n.º 8
0
 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));
Ejemplo n.º 10
0
 public void doesnt_produce_analog_added() =>
 ProducedEvents.Should().NotContain(EventOf <AnalogAdded>());
Ejemplo n.º 11
0
 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>());
Ejemplo n.º 14
0
 public void produces_analog2_added() => ProducedEvents.Should().Contain(Analog2Added);
 public void doesnt_produce_remote_created() =>
 ProducedEvents.Should().NotContain(AssertionsHelpers.EventOf <RemoteCreated>());
Ejemplo n.º 16
0
 public void customer_served_event_produced_for_previous_ticket() => ProducedEvents.Should().Contain(new CustomerServed(
                                                                                                         SingleCustomerQueueId,
                                                                                                         CounterA_Name,
                                                                                                         Ticket1_Id));
Ejemplo n.º 17
0
 public void customer_taken_is_not_produced() => ProducedEvents.Should().NotContain(
     new CustomerTaken(SingleCustomerQueueId, CounterA_Name, Ticket2_Id));
Ejemplo n.º 18
0
 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));
Ejemplo n.º 19
0
 public void ticket_added_event_exists() => ProducedEvents.Should().Contain(new TicketAdded(
                                                                                SingleCustomerQueueId,
                                                                                Ticket1_Id,
                                                                                Ticket1_Number));