public void SetupBeforeEachTest()
 {
     // Arrange
     reader = A.Fake <IContactReader>();
     A.CallTo(() => reader.LoadContactDataFromSource("")).Returns(GetTestContactData());
     ccLoader = new ConcreteContactLoader(reader);
 }
 public void CleanupAfterEachTest()
 {
     reader   = null;
     ccLoader = null;
 }
 /// <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;
 }
Exemple #4
0
        public void Setup()
        {
            var loggerFactory = TestHelper.CreateLogger( );

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