public void BuiltTransactionName_BuildsWebTransactionMetricName_IfWebTransactionName()
        {
            var transactionName = TransactionName.ForWebTransaction("foo", "bar");

            var builtName = _transactionMetricNameMaker.GetTransactionMetricName(transactionName);

            Assert.IsFalse(builtName.ShouldIgnore);
            Assert.AreEqual("WebTransaction/foo/bar", builtName.PrefixedName);
        }
        public static void GetTransactionApdex_ReturnsExpectedMetricName()
        {
            var transaction          = TestTransactions.CreateDefaultTransaction(true, null, null, null, null, null, "foo", "bar");
            var immutableTransaction = transaction.ConvertToImmutableTransaction();
            var transactionNameMaker = new TransactionMetricNameMaker(new MetricNameService());
            var transactionApdex     = MetricNames.GetTransactionApdex(transactionNameMaker.GetTransactionMetricName(immutableTransaction.TransactionName));

            var expectedName = "Apdex/foo/bar";

            Assert.AreEqual(expectedName, transactionApdex);
        }