public void GetUserFail()
        {
            // Arrange
            DBSetup();

            Mock<IUserService> userService = new Mock<IUserService>();
            userService.Setup(x => x.GetUser(It.IsAny<IDocumentSession>(), It.IsAny<string>())).Returns<User>(null);

            UserApiController controller = new UserApiController(userService.Object);

            // Act
            IHttpActionResult result = controller.GetUser("1");

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual(typeof(BadRequestErrorMessageResult), result.GetType());
            Assert.AreEqual((result as BadRequestErrorMessageResult).Message, "User not found!");
        }
        public void GetUser()
        {
            // Arrange
            DBSetup();

            var userModel = new User()
            {
                Id = "users/1",
                FirstName = "TestFN",
                LastName = "TestLN",
                Email = "*****@*****.**",
                StreetAddress = "TestSA",
                City = "TestCity",
                State = "TestState",
                Zip = "99999"
            };

            Mock<IUserService> userService = new Mock<IUserService>();
            userService.Setup(x => x.GetUser(It.IsAny<IDocumentSession>(), It.IsAny<string>())).Returns(userModel);

            UserApiController controller = new UserApiController(userService.Object);

            // Act
            IHttpActionResult result = controller.GetUser("1");

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual(typeof(OkNegotiatedContentResult<User>), result.GetType());
        }