FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
bitframework/src/Server/Bit.Tests/Program.cs at develop · pbehin/bitframework · GitHub
pbehin
/
bitframework
Public
forked from
bitfoundation/bitplatform
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
bitframework
/
src
/
Server
/
Bit.Tests
/
Program.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (31 loc) · 1.17 KB
Breadcrumbs
bitframework
/
src
/
Server
/
Bit.Tests
/
Program.cs
Copy path
File metadata and controls
38 lines (31 loc) · 1.17 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using
Bit
.
Test
;
using
System
;
using
System
.
Diagnostics
;
using
static
System
.
Runtime
.
InteropServices
.
OSPlatform
;
using
static
System
.
Runtime
.
InteropServices
.
RuntimeInformation
;
namespace
Bit
.
Tests
{
public
class
Program
{
public
static
void
Main
(
)
{
Console
.
Title
=
"Bit Tests"
;
using
(
BitOwinTestEnvironment
testEnvironment
=
new
BitOwinTestEnvironment
(
new
TestEnvironmentArgs
{
UseRealServer
=
true
,
UseTestDependencyManager
=
false
,
FullUri
=
"http://*:80"
}
)
)
{
const
string
url
=
"http://localhost/"
;
var
browser
=
IsOSPlatform
(
Windows
)
?
new
ProcessStartInfo
(
"cmd"
,
$
"/c start
{
url
}
"
)
:
IsOSPlatform
(
OSX
)
?
new
ProcessStartInfo
(
"open"
,
url
)
:
new
ProcessStartInfo
(
"xdg-open"
,
url
)
;
//linux, unix-like
Process
.
Start
(
browser
)
;
Console
.
WriteLine
(
testEnvironment
.
Server
.
Uri
)
;
Console
.
WriteLine
(
"Press any key to stop..."
)
;
Console
.
ReadKey
(
)
;
}
}
}
}
Back
|
FazBrowse Home
|
New Git URL