public void TestGetBooksFromAuthor() { IBookServices bsi = new BookServicesImplementation(); IAuthorServices asi = new AuthorServicesImplementation(); var author = asi.GetAuthorByName("Bert Bates"); var books = bsi.GetBooksFromAuthor(author); Assert.AreEqual(1, books.Count); }
public void TestAuthorHasDataServiceWithArgument() { authorServices = new AuthorServicesImplementation(authorDataServices); Assert.IsTrue(authorServices != null); }
public void TestAuthorHasDataServiceWithNoArgument() { authorServices = new AuthorServicesImplementation(); }
public void SetUp() { authorDataServices = MockRepository.GenerateMock <IAuthorDataService>(); authorServices = new AuthorServicesImplementation(authorDataServices); }