public async Task SecondaryObjectsController_GetAsync_Found()
        {
            // This test verifies that the controller does not throw an error when get returns an object
            var secondaryObjectsController = new SecondaryObjectsController(_secondaryObjectService.Object);
            var sourceSecondaryObject      = new DomainModels.SecondaryObject(Guid.NewGuid())
            {
                Description   = "Description 1.1",
                Name          = "Name 1.1",
                PrimaryObject = new DomainModels.PrimaryObject(Guid.NewGuid())
                {
                    Description = "Description 1",
                    Name        = "Name 1",
                },
            };

            sourceSecondaryObject.PrimaryObject_Id = sourceSecondaryObject.PrimaryObject.Id;
            sourceSecondaryObject.PrimaryObject.SecondaryObjects = new List <DomainModels.SecondaryObject>()
            {
                sourceSecondaryObject
            };

            _secondaryObjectService.Setup(_ => _.GetAsync(sourceSecondaryObject.Id)).ReturnsAsync(sourceSecondaryObject);

            var destinationSecondaryObject = await secondaryObjectsController.GetAsync(sourceSecondaryObject.Id);

            Assert.IsNotNull(destinationSecondaryObject);
            Assert.AreEqual(sourceSecondaryObject.Description, destinationSecondaryObject.Description);
            Assert.AreEqual(sourceSecondaryObject.Id, destinationSecondaryObject.Id);
            Assert.AreEqual(sourceSecondaryObject.Name, destinationSecondaryObject.Name);
            Assert.IsNotNull(destinationSecondaryObject.PrimaryObject);
            Assert.IsNull(destinationSecondaryObject.PrimaryObject.Description);
            Assert.AreEqual(sourceSecondaryObject.PrimaryObject.Id, destinationSecondaryObject.PrimaryObject.Id);
            Assert.IsNull(destinationSecondaryObject.PrimaryObject.Name);
            Assert.IsNull(destinationSecondaryObject.PrimaryObject.SecondaryObjects);
        }
        public async Task SecondaryObjectsController_GetAsync_NotFound()
        {
            // This test verifies that the controller throws the correct HttpResponseException when get does not return an object
            var secondaryObjectsController = new SecondaryObjectsController(_secondaryObjectService.Object);

            DomainModels.SecondaryObject sourceSecondaryObject = null;

            _secondaryObjectService.Setup(_ => _.GetAsync(It.IsAny <Guid>())).ReturnsAsync(sourceSecondaryObject);

            try
            {
                await secondaryObjectsController.GetAsync(Guid.NewGuid());

                Assert.Fail();
            }
            catch (HttpResponseException ex)
            {
                Assert.IsNotNull(ex.Response);
                Assert.AreEqual(HttpStatusCode.NotFound, ex.Response.StatusCode);
            }
        }