Ejemplo n.º 1
0
        public void GetProfileInformation_CkeckTypeOfReturnData_Returns_TypeIsProfileInformationDTO()
        {
            // Arrange
            var mock    = new Mock <IUnitOfWork>();
            var inputId = "123";

            mock.Setup(x => x.UserProfileManager.GetUserById(inputId)).Returns(new UserProfile());

            // Act
            var userService = new UserService(mock.Object);
            var result      = userService.GetProfileInformation(inputId);
            var expected    = new ProfileInformationDTO();

            //Assert
            Assert.AreEqual(expected.GetType(), result.GetType());
        }