public CreatePackageRepository ( ) : IPackageRepository | ||
Результат | IPackageRepository |
public static void ShouldCreateRemoteRepository() { var factory = new SourcePackageRepositoryFactory(new PackageSource("http://donkey.com")); var repository = factory.CreatePackageRepository(); repository.Should().BeOfType<DataServicePackageRepository>(); }
public static void ShouldCreateLocalRepository() { var factory = new SourcePackageRepositoryFactory(new PackageSource("C:\\Donkey")); var repository = factory.CreatePackageRepository(); repository.Should().BeOfType<LocalPackageRepository>(); }