public void GetServiceWithContractTypeAndNullName()
        {
            // Setup
            var listing = new ServiceContractListing();
            var contractType = typeof(ServiceBase);
            var service = new TestService { Contract = contractType, Name = "Service1" };
            listing.Add(service);

            // Execute
            var result = listing.GetService(contractType, a_name:null);
        }
        public void GetServiceWithContractTypeAndName()
        {
            // Setup
            var listing = new ServiceContractListing();
            var contractType = typeof(ServiceBase);
            var service = new TestService { Contract = contractType, Name = "Service1" };
            listing.Add(service);

            // Execute
            var result = listing.GetService(contractType, "Service1");

            // Assert
            Assert.IsNotNull(result);
            Assert.AreSame(service, result);
        }