Esempio n. 1
0
        public void Should_be_valid()
        {
            var command = new DeleteCommerceCommand()
            {
                Id = Guid.NewGuid()
            };

            command.Validate();

            Assert.True(command.Valid);
        }
Esempio n. 2
0
        public void Should_be_invalid_when_id_is_empty()
        {
            var command = new DeleteCommerceCommand()
            {
                Id = Guid.Empty
            };

            command.Validate();

            Assert.False(command.Valid);
        }