コード例 #1
0
        public void GetPathOrDefault_Success()
        {
            IServiceProvider services = new ServiceCollection().AddInstance <IHostingEnvironment>(new TestHostingEnvironment()).BuildServiceProvider();

            string result = SqliteStorageEngineBuilder.GetPathOrDefault(services, "data.db");

            Assert.Equal(@"\path\App_Data\data.db", result);
        }