public void AddDog_PostQuerySuccessfullyExecuted_ReturnsOkObjectresult()
        {
            var id  = Guid.NewGuid();
            var dog = new DogToBeAdded();

            var userManagementServiceMock = new Mock <IUserManagementService>();

            userManagementServiceMock.Setup(x => x.AddDog(dog, id));

            var userManagementController = new UserManagementController(userManagementServiceMock.Object);

            var claims = new List <Claim>()
            {
                new Claim(ClaimTypes.NameIdentifier, id.ToString())
            };
            var identity        = new ClaimsIdentity(claims);
            var claimsPrincipal = new ClaimsPrincipal(identity);

            var httpContextMock = new Mock <Microsoft.AspNetCore.Http.HttpContext>();

            httpContextMock.Setup(c => c.User).Returns(claimsPrincipal);

            var actionContext = new ActionContext()
            {
                ActionDescriptor = new Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor(),
                RouteData        = new Microsoft.AspNetCore.Routing.RouteData()
            };

            actionContext.HttpContext = httpContextMock.Object;

            var controllerContext = new ControllerContext(actionContext);

            userManagementController.ControllerContext = controllerContext;

            var result = userManagementController.Add(dog);

            Assert.IsTrue(result.GetType() == typeof(OkObjectResult));
        }