Пример #1
0
        public void Create_should_return_valid_value_for_events()
        {
            var sysInfo = new SystemInfo(Guid.NewGuid(), "lorem");
            var sut     = new DefaultGroupIdFactory(sysInfo);
            var result  = sut.Create <DummyEvent>();

            result.Should().Be(typeof(DummyEvent).FullName + "." + sysInfo.ClientGroup);
        }
Пример #2
0
        public void Create_should_return_valid_value_for_messages()
        {
            var sysInfo = new SystemInfo(Guid.NewGuid(), "lorem");
            var sut     = new DefaultGroupIdFactory(sysInfo);
            var result  = sut.Create <DummyMessage>();

            result.Should().Be(typeof(DummyMessage).FullName);
        }