예제 #1
0
        public void Validate_Error()
        {
            var command = new ProviderProjectCreateCommand(null, new Project());
            var message = new ProviderCommandMessage(command, "http://localhost/callback");

            var result = message.Validate();

            Assert.False(result.IsValid);
        }
예제 #2
0
        public void Validate_Success()
        {
            var command = new ProviderProjectCreateCommand(new User(), new Project());
            var message = new ProviderCommandMessage(command, "http://localhost/callback");

            var result = message.Validate();

            Assert.True(result.IsValid);
        }