Пример #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);
 }