Ejemplo n.º 1
0
        public void CallCreateModel_DurationSeconds_InValid_NegativeAndZero(int AccountId, int DurationSeconds)
        {
            //arange
            var callcreate = new CallCreateModel()
            {
                accountid = AccountId, durationseconds = DurationSeconds
            };
            //act
            var results = TestModelHelper.Validate(callcreate);

            //assert
            Assert.NotEqual(0, results.Count);
        }
Ejemplo n.º 2
0
        public void CallCreateModel_AccountID_InValid_NegativeAndZero(int AccountId)
        {
            //arange
            var callcreate = new CallCreateModel()
            {
                accountid = AccountId
            };
            //act
            var results = TestModelHelper.Validate(callcreate);

            //assert
            Assert.Equal(1, results.Count);
        }