Exemplo n.º 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);
        }
Exemplo n.º 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);
        }