public void ShouldEditGroupSuccessfully() { var group = new GroupDTO() { GroupName = "This will work", Address = new AddressDTO { AddressLine1 = "line 1", City = "city", State = "state", PostalCode = "zip" } }; var returnGroup = new GroupDTO() { GroupName = "This will work" }; _groupServiceMock.Setup(mocked => mocked.UpdateGroup(group)).Returns(returnGroup); _addressServiceMock.Setup(mocked => mocked.FindOrCreateAddress(It.IsAny <AddressDTO>(), true)); IHttpActionResult result = _fixture.EditGroup(group); _addressServiceMock.VerifyAll(); Assert.IsNotNull(result); Assert.IsInstanceOf(typeof(CreatedNegotiatedContentResult <GroupDTO>), result); }