11 references to Customer
Microsoft.Extensions.Caching.Hybrid.Tests (11)
ServiceConstructionTests.cs (11)
115Assert.IsType<DefaultJsonSerializerFactory.DefaultJsonSerializer<Customer>>(cache.GetSerializer<Customer>()); 123services.AddHybridCache().AddSerializer<Customer, CustomerSerializer>(); 127Assert.IsType<CustomerSerializer>(cache.GetSerializer<Customer>()); 139Assert.IsType<CustomerSerializer>(cache.GetSerializer<Customer>()); 213class CustomerSerializer : IHybridCacheSerializer<Customer> 215Customer IHybridCacheSerializer<Customer>.Deserialize(ReadOnlySequence<byte> source) => throw new NotImplementedException(); 216void IHybridCacheSerializer<Customer>.Serialize(Customer value, IBufferWriter<byte> target) => throw new NotImplementedException(); 223if (typeof(T) == typeof(Customer))