public void DeleteSocialRelationship_Success()
        {
            // Act
            var response = controller.DeleteSocialRelationship(defaultDeleteID, DateTime.UtcNow);

            // Assert
            Assert.IsNotNull(response, "Response can not be null");
            Assert.IsTrue(response.RowAffected > 2, "Social Relationship could not be deleted.");
        }
Exemplo n.º 2
0
        public void DeleteSocialRelationship_Success()
        {
            //Act
            Mock_SocialRelationship();
            var deleteSocialRelationshipResult = socialRelationshipController.DeleteSocialRelationship(_defaultDeleteId, DateTime.UtcNow);
            var response = deleteSocialRelationshipResult as HttpResult <Response <SocialRelationshipModel> >;

            //Assert
            Assert.IsNotNull(response, "Response can't be null");
            Assert.IsTrue(socialRelationships.Count() == 0, "Social Relationship could not be deleted.");
        }