public async Task given_model_not_found_then_FindTheater_returns_null( TheaterReadModelFacade sut, Guid theaterId) { TheaterDto actual = await sut.FindTheater(theaterId); actual.Should().BeNull(); }
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, }); }