Esempio n. 1
0
 protected UnitTest(TestDataFixture testData, TestMapperFixture testMapper, TestValidator testValidator)
 {
     TestData      = testData;
     TestValidator = testValidator;
     TestMapper    = testMapper.Instance;
     TestMock      = new TestMockFixture();
 }
Esempio n. 2
0
 protected IntegrationTest(TestHostFixture testHost, TestDataFixture testData, TestMapperFixture testMapper)
 {
     TestHost   = testHost;
     TestData   = testData;
     TestMapper = testMapper.Instance;
     TestMock   = new TestMockFixture();
 }
Esempio n. 3
0
 protected IntegrationTest(
     TestHostFixture testHost,
     TestDataFixture testData,
     TestMapperFixture testMapper,
     Func <HttpClient, LinkGenerator, object, Task <HttpResponseMessage> >?executeAsync = null
     )
 {
     TestHost         = testHost;
     TestData         = testData;
     TestMapper       = testMapper.Instance;
     ExecuteFuncAsync = executeAsync ?? ((httpClient, linkGenerator, values) => Task.FromResult(new HttpResponseMessage()));
     TestMock         = new TestMockFixture();
 }
Esempio n. 4
0
 protected UnitTest(TestMapperFixture testMapper)
 {
     TestMapper = testMapper.Instance;
     TestMock   = new TestMockFixture();
 }