コード例 #1
0
 public void SetupBeforeEachTest()
 {
     // Arrange
     reader = A.Fake <IContactReader>();
     A.CallTo(() => reader.LoadContactDataFromSource("")).Returns(GetTestContactData());
     ccLoader = new ConcreteContactLoader(reader);
 }
コード例 #2
0
 public void CleanupAfterEachTest()
 {
     reader   = null;
     ccLoader = null;
 }
コード例 #3
0
 /// <summary> Initializes a new instance of the <see cref="ConcreteContactLoader"/> class.</summary>
 /// <param name="contactReader"><see cref="IContactReader"/></param>
 public ConcreteContactLoader(IContactReader contactReader)
 {
     _contactReader = contactReader;
 }
コード例 #4
0
ファイル: ContactReaderTest.cs プロジェクト: kldev/kcrm-meta
        public void Setup()
        {
            var loggerFactory = TestHelper.CreateLogger( );

            _reader = new ContactReader(new TestConnectionFactory( ), loggerFactory.CreateLogger <ContactReader> ( ));
        }