private Library CreateAndRetrieveLibrary(string libraryName) { CreateLibraryDto libraryToCreate = new CreateLibraryDto(libraryName); var libraryId = repository.CreateLibrary(libraryToCreate); return(repository.GetLibrary(libraryId)); }
public TagRepositoryTests() { var libraryRepository = new LibraryRepository(); var libId = libraryRepository.CreateLibrary(new CreateLibraryDto("test")); library = libraryRepository.GetLibrary(libId); }
private Library CreateAndRetrieveLibrary(CreateLibraryDto libraryDto) { long libraryId = libraryRepository.CreateLibrary(libraryDto); return(new Library(libraryId, libraryDto)); }