C# Class TestBase, VisualStudio

Show file Open project: github/VisualStudio Class Usage Examples

Protected Properties

Property Type Description
Now DateTimeOffset
testOutput StringBuilder

Public Methods

Method Description
TestBase ( ) : System
TestBase ( ITestOutputHelper output ) : System

Protected Methods

Method Description
Add ( Subject source, Thing, item ) : void
Compare ( Thing, thing1, Thing, thing2 ) : bool
Dump ( IEnumerable col ) : void
Dump ( object thing ) : void
Dump ( object prefix, object thing ) : void
Dump ( string msg ) : void
Dump ( string title, IEnumerable col ) : void
GetThing ( int id ) : Thing,

This will create a new Thing with CreatedAt and UpdatedAt set to 0

GetThing ( int id, int minutes ) : Thing,
GetThing ( int id, int minutesc, int minutesu ) : Thing,
GetThing ( int id, int minutesc, int minutesu, string title ) : Thing,
GetThing ( int id, string title ) : Thing,

Method Details

Add() protected method

protected Add ( Subject source, Thing, item ) : void
source Subject
item Thing,
return void

Compare() protected method

protected Compare ( Thing, thing1, Thing, thing2 ) : bool
thing1 Thing,
thing2 Thing,
return bool

Dump() protected method

protected Dump ( IEnumerable col ) : void
col IEnumerable
return void

Dump() protected method

protected Dump ( object thing ) : void
thing object
return void

Dump() protected method

protected Dump ( object prefix, object thing ) : void
prefix object
thing object
return void

Dump() protected method

protected Dump ( string msg ) : void
msg string
return void

Dump() protected method

protected Dump ( string title, IEnumerable col ) : void
title string
col IEnumerable
return void

GetThing() protected method

This will create a new Thing with CreatedAt and UpdatedAt set to 0
protected GetThing ( int id ) : Thing,
id int
return Thing,

GetThing() protected method

protected GetThing ( int id, int minutes ) : Thing,
id int
minutes int
return Thing,

GetThing() protected method

protected GetThing ( int id, int minutesc, int minutesu ) : Thing,
id int
minutesc int
minutesu int
return Thing,

GetThing() protected method

protected GetThing ( int id, int minutesc, int minutesu, string title ) : Thing,
id int
minutesc int
minutesu int
title string
return Thing,

GetThing() protected method

protected GetThing ( int id, string title ) : Thing,
id int
title string
return Thing,

TestBase() public method

public TestBase ( ) : System
return System

TestBase() public method

public TestBase ( ITestOutputHelper output ) : System
output ITestOutputHelper
return System

Property Details

Now protected property

protected DateTimeOffset Now
return DateTimeOffset

testOutput protected property

protected StringBuilder testOutput
return StringBuilder