示例#1
0
        public void GetEmergencyContacts_Success()
        {
            // Act
            var response = controller.GetEmergencyContacts(defaultContactId, defaultcontactTypeId).Result;
            var count    = response.DataItems.Count;

            // Assert
            Assert.IsTrue(count > 0, "Atleast one emergency contact must exists.");
        }
示例#2
0
        public void GetEmergencyContacts_Success()
        {
            //Act
            Mock_EmergencyContact_Success();
            var getEmergencyContactsResult = emergencyContactController.GetEmergencyContacts(_defaultContactId, _defaultContactTypeId);
            var response         = getEmergencyContactsResult as HttpResult <Response <EmergencyContactModel> >;
            var emergencyContact = response.Value.DataItems;

            //Assert
            Assert.IsNotNull(emergencyContact, "Data items can't be null");
            Assert.IsTrue(emergencyContact.Count() > 0, "Atleast one emergency contact must exists.");
        }