public void TestMessage() { var unregisterService = UnregisterService.As(Name.Of("test-service")); Assert.Equal(Name.Of("test-service"), unregisterService.Name); Assert.Equal(_textMessage, unregisterService.ToString()); }
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); }