Exemplo n.º 1
0
        public async Task given_model_not_found_then_FindTheater_returns_null(
            TheaterReadModelFacade sut, Guid theaterId)
        {
            TheaterDto actual = await sut.FindTheater(theaterId);

            actual.Should().BeNull();
        }
Exemplo n.º 2
0
        public async Task FindTheater_assembles_transfer_object_correctly(
            Theater entity, InMemoryTheaterRepository readerStub)
        {
            readerStub.Data[entity.Id] = entity;
            var sut = new TheaterReadModelFacade(readerStub);

            TheaterDto actual = await sut.FindTheater(theaterId : entity.Id);

            actual.Should().BeEquivalentTo(new
            {
                entity.Id,
                entity.Name,
                entity.SeatRowCount,
                entity.SeatColumnCount,
                entity.CreatedAt,
            });
        }