public void GetMetadataForModuleRequest_ExistingMetadataForSpecificModuleName_ReturnedMetadataDtos()
        {
            var metadataRepository = CreateMockedMetadataRepository ();
            var handler = new GetMetadataForModuleRequestHandler ( metadataRepository );
            var request = new GetMetadataForModuleRequest { ModuleNames = { "Rem.Ria.PatientModule" } };

            var response = handler.Handle ( request ) as GetMetadataForModuleResponse;

            var expectedMetadataDtos = GetExpectedMetadataDtoList ();
            AssertMetadataDtosAreEqual(expectedMetadataDtos, response.MetadataDtos);
        }
        public void GetMetadataForModuleRequest_ExistingMetadataForSpecificModuleName_ReturnedMetadataDtos()
        {
            var metadataRepository = CreateMockedMetadataRepository();
            var handler            = new GetMetadataForModuleRequestHandler(metadataRepository);
            var request            = new GetMetadataForModuleRequest {
                ModuleNames = { "Rem.Ria.PatientModule" }
            };

            var response = handler.Handle(request) as GetMetadataForModuleResponse;

            var expectedMetadataDtos = GetExpectedMetadataDtoList();

            AssertMetadataDtosAreEqual(expectedMetadataDtos, response.MetadataDtos);
        }