コード例 #1
0
        /// <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;
        }
コード例 #2
0
 public void SetUp()
 {
     authorDataServices = MockRepository.GenerateMock <IAuthorDataService>();
     authorServices     = new AuthorServicesImplementation(authorDataServices);
 }