/// <summary>Initializes a new instance of the <see cref="AuthorServicesImplementation"/> class.</summary> /// <param name="authorDataService">The author data service.</param> public AuthorServicesImplementation(IAuthorDataService authorDataService = null) { if (authorDataService == null) { authorDataService = DAOFactoryMethod.CurrentDAOFactory.AuthorDataService; } this.authorDataService = authorDataService; }
public void SetUp() { authorDataServices = MockRepository.GenerateMock <IAuthorDataService>(); authorServices = new AuthorServicesImplementation(authorDataServices); }