public void Should_inject_DeDuplicatingSerializer_config_into_ActorSystem() { ExtraPersistence.For(Sys).Running.Should().BeTrue(); // Test with confirmation var confirmation = new Confirmation(1L, "fuber"); var serializer = (SerializerWithStringManifest)Sys.Serialization.FindSerializerFor(confirmation); serializer.Should().BeOfType <DeDuplicatingMessageSerializer>(); // Test with envelope Sys.Serialization.FindSerializerForType(typeof(ConfirmableMessageEnvelope)) .Should().BeOfType <DeDuplicatingMessageSerializer>(); // Test with snapshot Sys.Serialization.FindSerializerForType(typeof(IReceiverStateSnapshot)) .Should().BeOfType <DeDuplicatingMessageSerializer>(); Sys.Serialization.FindSerializerForType(typeof(ReceiverStateSnapshot)) .Should().BeOfType <DeDuplicatingMessageSerializer>(); }
public void Should_load_default_ExtraPersistence_HOCON() { var defaultConfig = ExtraPersistence.DefaultConfig(); defaultConfig.Should().NotBeNull(); }