public void ConstructorShouldSucceed()
        {
            //Arrange
            var mediator = new Mock <IMediator>().Object;

            //Act
            var controller = new ConfigurationDataController(mediator);

            //Assert
            controller.Should().NotBeNull();
        }
        public void ReadConfiguration_Delegates_To_Service()
        {
            ConfigurationDataEntity expectedEntity = new ConfigurationDataEntity()
            {
                Something        = "some data",
                ServiceEndpoints = new ConcurrentDictionary <string, ServiceEndpointDetail>()
            };
            IConfigurationDataService service = SetupConfigurationDataService(expectedEntity);

            ConfigurationDataResponse expectedResponse = new ConfigurationDataResponse();
            IMapper mapper = SetupMapper(expectedResponse);

            var controller = new ConfigurationDataController(service, mapper);
            var response   = SuccessfulRead(controller);

            Assert.Same(expectedResponse, response);
        }
        private ConfigurationDataResponse SuccessfulRead(ConfigurationDataController controller)
        {
            var controllerResult = controller.ReadConfiguration();

            return(ControllerTestHelper <ConfigurationDataResponse> .Successful(controllerResult));
        }