Exemple #1
0
        public void ReserveCapacityReturnsCorrectResult(RequestReservationCommand sut)
        {
            CapacityReservedEvent actual = sut.ReserveCapacity();

            sut.AsSource().OfLikeness <CapacityReservedEvent>()
            .ShouldEqual(actual);
        }
Exemple #2
0
        public void WithQuantityReturnsCorrectResult(RequestReservationCommand sut,
                                                     int newQuantity)
        {
            RequestReservationCommand actual = sut.WithQuantity(newQuantity);

            sut.AsSource().OfLikeness <RequestReservationCommand>()
            .With(d => d.Quantity).EqualsWhen((s, d) => d.Quantity == newQuantity)
            .Without(d => d.Id)
            .ShouldEqual(actual);
        }
Exemple #3
0
        public void AcceptReturnsCorrectResult(RequestReservationCommand sut)
        {
            ReservationAcceptedEvent actual = sut.Accept();

            sut.AsSource().OfLikeness <ReservationAcceptedEvent>().ShouldEqual(actual);
        }