Exemplo n.º 1
0
 public AdaptManyOrFallback()
 {
     _testAdapter = _testAdapter.Fake();
     _sampleInput = new[] { "One", "Two" };
     _fallBack    = () => new[] { new Foo {
                                      Value = "FallbackResult"
                                  } };
 }
Exemplo n.º 2
0
 public void SetUp()
 {
     _userAdapter     = _userAdapter.Fake();
     _sut             = new GetCurrentUserHandler(_userAdapter);
     _securityContext = _securityContext.Fake();
 }
Exemplo n.º 3
0
 public AdaptNullableMany()
 {
     _testAdapter = _testAdapter.Fake();
     _sampleInput = new DateTime?[] { new DateTime(2016, 12, 22), new DateTime(2017, 1, 1) };
 }
Exemplo n.º 4
0
 public AdaptMany()
 {
     _testAdapter = _testAdapter.Fake();
     _sampleInput = new[] { "One", "Two" };
 }
Exemplo 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 };
 }
Exemplo n.º 6
0
 public AdaptNullable()
 {
     _testAdapter = _testAdapter.Fake();
     _sampleInput = new DateTime(2016, 12, 22);
 }