Esempio n. 1
0
 public AdaptManyOrFallback()
 {
     _testAdapter = _testAdapter.Fake();
     _sampleInput = new[] { "One", "Two" };
     _fallBack    = () => new[] { new Foo {
                                      Value = "FallbackResult"
                                  } };
 }
Esempio n. 2
0
 public void SetUp()
 {
     _userAdapter     = _userAdapter.Fake();
     _sut             = new GetCurrentUserHandler(_userAdapter);
     _securityContext = _securityContext.Fake();
 }
Esempio n. 3
0
 public AdaptNullableMany()
 {
     _testAdapter = _testAdapter.Fake();
     _sampleInput = new DateTime?[] { new DateTime(2016, 12, 22), new DateTime(2017, 1, 1) };
 }
Esempio n. 4
0
 public AdaptMany()
 {
     _testAdapter = _testAdapter.Fake();
     _sampleInput = new[] { "One", "Two" };
 }
Esempio n. 5
0
 public AdaptNullableManyOrFallback()
 {
     _testAdapter = _testAdapter.Fake();
     _sampleInput = new DateTime?[] { new DateTime(2016, 12, 22), new DateTime(2017, 1, 1) };
     _fallBack    = () => new bool?[] { true, false };
 }
Esempio n. 6
0
 public AdaptNullable()
 {
     _testAdapter = _testAdapter.Fake();
     _sampleInput = new DateTime(2016, 12, 22);
 }