Пример #1
0
        public void TestMessage()
        {
            var unregisterService = UnregisterService.As(Name.Of("test-service"));

            Assert.Equal(Name.Of("test-service"), unregisterService.Name);
            Assert.Equal(_textMessage, unregisterService.ToString());
        }
Пример #2
0
        public void TestValidity()
        {
            var unregisterService = UnregisterService.As(Name.Of("test-service"));

            Assert.True(unregisterService.IsValid);
            Assert.False(UnregisterService.From("blah").IsValid);
            Assert.True(UnregisterService.From(_textMessage).IsValid);
        }