public async Task GetTermsOfServiceAsync_WithTestGuid_ReturnsCorrectResult()
        {
            // Arrange
            var testGuid = Guid.NewGuid();
            var testName = "TestTermsOfServiceName";

            termsOfServiceService.GetByIdAsync(testGuid, true).Returns(new TermsOfService {
                Uuid = testGuid, AgreementName = testName
            });

            var controller = new TermsOfServiceController(termsOfServiceService, orderByHelper, paginationHelper, mapper);

            // Act
            IActionResult actionResult = await controller.GetTermsOfServiceAsync(testGuid);

            // Assert
            var okResult = actionResult as OkObjectResult;

            Assert.NotNull(okResult);

            var termsOfService = okResult.Value as TermsOfService;

            Assert.NotNull(termsOfService);
            Assert.True(termsOfService.Uuid == testGuid, $"Retrieved Id {termsOfService.Uuid} not the same as sample id {testGuid}.");
            Assert.True(termsOfService.AgreementName == testName, $"Retrieved Name {termsOfService.AgreementName} not the same as sample id {testName}.");
        }
        public async Task GetTermsOfServiceAsync_WithRandomGuid_ReturnsNotFoundResult()
        {
            // Arrange
            var controller = new TermsOfServiceController(termsOfServiceService, orderByHelper, paginationHelper, mapper);

            // Act
            var result = await controller.GetTermsOfServiceAsync(Guid.NewGuid());

            // Assert
            Assert.IsType <NotFoundResult>(result);
        }
        public async Task GetTermsOfServiceAsync_WithEmptyGuid_ReturnsBadRequest()
        {
            // Arrange
            var controller = new TermsOfServiceController(termsOfServiceService, orderByHelper, paginationHelper, mapper);

            // Act
            var result = await controller.GetTermsOfServiceAsync(Guid.Empty);

            // Assert
            var badRequestResult = result as BadRequestResult;

            Assert.NotNull(badRequestResult);
        }