public async Task ConvertAsync_WithManufacturerIsNull_ShouldConvertToReadModel() { // Arrange var local = new LocalFixture(); var service = local.CreateService(); var item = local.CreateItemWithoutManufacturer(); var availability = item.Availabilities.First(); var itemCategory = local.CreateItemCategory(item.ItemCategoryId); var store = local.CreateStore(availability.StoreId, availability.DefaultSectionId); local.ItemCategoryRepositoryMock.SetupFindByAsync(item.ItemCategoryId, itemCategory); local.StoreRepositoryMock.SetupFindByAsync(availability.StoreId.ToMonoList(), store.ToMonoList()); // Act var result = await service.ConvertAsync(item, default); // Assert var expected = local.ToSimpleReadModel(item, itemCategory, null, store); using (new AssertionScope()) { result.Should().BeEquivalentTo(expected); } }