Beispiel #1
0
        public void Equatable_by_path()
        {
            var path = StreamPath.From("sms", "42");

            var ref1 = new StreamRef(path, null);
            var ref2 = new StreamRef(path, null);

            Assert.True(ref1 == ref2);
            Assert.True(ref1.Equals(ref2));
        }
        public StreamRefMock MockStreamOf(string provider, string id)
        {
            var path = StreamPath.From(provider, id);

            return(GetOrCreateMock(path));
        }
Beispiel #3
0
        public void Can_be_constructed_and_serialized_without_stream_provider_registration()
        {
            var path = StreamPath.From("sms", "42");

            Assert.AreEqual("sms:42", path.Serialize());
        }