Update to latest packages and show examples

This commit is contained in:
2026-07-05 22:05:53 +02:00
parent 3a36978997
commit c7ddc282ed
52 changed files with 2156 additions and 21 deletions
@@ -0,0 +1,35 @@
using AwesomeAssertions;
using GerstITS.Examples.Logic.Customers;
using GerstITS.Examples.Logic.Customers.Customizations;
using GerstITS.System.Customizations;
using GerstITS.TestFramework;
using Xunit;
namespace GerstITS.Examples.Tests.Customers.Customizations;
[TestCategory(TestCategories.Unit)]
public sealed class CustomerDisplayNameCustomizationTest
{
#region Tests
[Fact]
public void If_a_customer_is_customized___The_display_name_is_composed()
{
ICustomization customization = new CustomerDisplayNameCustomization();
var customer = new Customer { FirstName = "Erika", LastName = "Mustermann" };
var customized = customization.Customize(customer, null);
customized.DisplayName.Should().Be("Mustermann, Erika");
}
[Fact]
public void If_the_customer_is_null___It_cannot_be_customized()
{
ICustomization customization = new CustomerDisplayNameCustomization();
customization.CanCustomize<Customer>(null, null).Should().BeFalse();
}
#endregion
}