aboutsummaryrefslogtreecommitdiff
path: root/Timeline/EnvironmentConstants.cs
blob: 0dcb8d29baceea54dfb29585dc86dc8d3c6695ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using Microsoft.AspNetCore.Hosting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Timeline
{
    public static class EnvironmentConstants
    {
        public const string TestEnvironmentName = "Test";

        public static bool IsTest(this IHostingEnvironment environment)
        {
            return environment.EnvironmentName == TestEnvironmentName;
        }
    }
}