public void InvalidOwnerIdentifier()
        {
            var validator = new ContactRowValidator();
            var data      = this.Contact();

            data.PartitionKey = StringHelper.NullEmptyWhiteSpace();
            Assert.IsFalse(validator.ValidateForAddOrUpdate(data));
        }
        public void InvalidEmail()
        {
            var validator = new ContactRowValidator();
            var data      = this.Contact();

            data.Email = StringHelper.NullEmptyWhiteSpace();
            Assert.IsFalse(validator.ValidateForAddOrUpdate(data));
        }
예제 #3
0
        public void NullEntity()
        {
            var validator = new ContactRowValidator();

            Assert.IsFalse(validator.ValidateForAddOrUpdate(null));
        }
        public void Valid()
        {
            var validator = new ContactRowValidator();

            Assert.IsTrue(validator.ValidateForAddOrUpdate(this.Contact()));
        }