public void IfExternalReferenceToBeInsertedDoesNotAlreadyExistReturn201StatusCodeAndId()
        {
            var response = new InsertResidentResponse {
                ResidentId = 2, ResidentRecordAlreadyPresent = false
            };

            _mockInsertExternalReferenceRecordUseCase.Setup(x => x.Execute(It.IsAny <InsertResidentRequest>())).Returns(response);

            var result = _classUnderTest.InsertExternalReference(It.IsAny <InsertResidentRequest>()) as CreatedAtActionResult;

            result.Should().NotBeNull();
            result.StatusCode.Should().Be(201);
            result.Value.Should().BeEquivalentTo(response);
        }
        public void IfExternalReferenceToBeInsertedAlreadyExistsShouldReturn200StatusCode()
        {
            var response = new InsertResidentResponse {
                ResidentRecordAlreadyPresent = true
            };

            _mockInsertExternalReferenceRecordUseCase.Setup(x => x.Execute(It.IsAny <InsertResidentRequest>())).Returns(response);

            var result = _classUnderTest.InsertExternalReference(It.IsAny <InsertResidentRequest>()) as OkObjectResult;

            result.Should().NotBeNull();
            result.StatusCode.Should().Be(200);
            result.Value.Should().BeEquivalentTo(response);
        }