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