示例#1
0
        public void GetContactById_ValidId_Succeds()
        {
            //Arrange
            A.CallTo(() => contactInformationService.GetContactById(1)).Returns(GetContacts()[0]);

            //Act
            var response = controller.GetContactById(1) as OkNegotiatedContentResult <ContactBO>;

            //Assert
            Assert.IsNotNull(response);
            Assert.AreEqual(response.Content.Id, 1);
        }