示例#1
0
 public SProcPublisherTest(PackageTestFilesFixture files)
 {
     _files       = files;
     _shell       = Substitute.For <ICoreShell>();
     _pss         = Substitute.For <IProjectSystemServices>();
     _dacServices = Substitute.For <IDacPackageServices>();
 }
示例#2
0
 public SProcGeneratorTest(PackageTestFilesFixture files)
 {
     _files   = files;
     _pss     = Substitute.For <IProjectSystemServices>();
     _project = Substitute.For <EnvDTE.Project>();
     _project.FullName.Returns(Path.Combine(_files.DestinationPath, sqlProjectName));
 }
示例#3
0
        public SProcGeneratorTest(PackageTestFilesFixture files) {
            _files = files;
            _coreShell = Substitute.For<ICoreShell>();
            _pss = Substitute.For<IProjectSystemServices>();

            _project = Substitute.For<EnvDTE.Project>();
            _project.FullName.Returns(Path.Combine(_files.DestinationPath, sqlProjectName));
        }
        public SProcPublisherTest(PackageTestFilesFixture files)
        {
            _files = files;
            _shell = TestCoreShell.CreateSubstitute();

            _shell.ServiceManager.RemoveService(_shell.ServiceManager.GetService <IFileSystem>());
            _shell.ServiceManager.AddService(new WindowsFileSystem());

            _pss         = Substitute.For <IProjectSystemServices>();
            _dacServices = Substitute.For <IDacPackageServices>();
        }
        public ProjectSettingsControlTest(PackageTestFilesFixture files) {
            _files = files;
            _appShell = Substitute.For<IApplicationShell>();
            _fs = Substitute.For<IFileSystem>();

            _access = Substitute.For<IProjectConfigurationSettingsAccess>();
            _access.Settings.Returns(_coll);

            _csp = Substitute.For<IProjectConfigurationSettingsProvider>();
            _csp.OpenProjectSettingsAccessAsync(null, null).ReturnsForAnyArgs(Task.FromResult(_access));

            _unconfiguredProject = Substitute.For<UnconfiguredProject>();
            _unconfiguredProject.FullPath.Returns(@"C:\file.rproj");

            _properties = Substitute.For<IRProjectProperties>();
            _properties.GetSettingsFileAsync().Returns(Task.FromResult<string>(null));
        }
        public ProjectSettingsControlTest(PackageTestFilesFixture files)
        {
            _files = files;
            _shell = Substitute.For <ICoreShell>();
            _fs    = Substitute.For <IFileSystem>();

            _access = Substitute.For <IProjectConfigurationSettingsAccess>();
            _access.Settings.Returns(_coll);

            _csp = Substitute.For <IProjectConfigurationSettingsProvider>();
            _csp.OpenProjectSettingsAccessAsync(null, null).ReturnsForAnyArgs(Task.FromResult(_access));

            _unconfiguredProject = Substitute.For <UnconfiguredProject>();
            _unconfiguredProject.FullPath.Returns(@"C:\file.rproj");

            _properties = Substitute.For <IRProjectProperties>();
            _properties.GetSettingsFileAsync().Returns(Task.FromResult <string>(null));
        }
示例#7
0
 public SettingsProviderTest(PackageTestFilesFixture files)
 {
     _files = files;
 }
示例#8
0
 public SettingsProviderTest(PackageTestFilesFixture files) {
     _files = files;
 }
示例#9
0
 public SProcPublisherTest(PackageTestFilesFixture files) {
     _files = files;
     _appShell = Substitute.For<IApplicationShell>();
     _pss = Substitute.For<IProjectSystemServices>();
     _dacServices = Substitute.For<IDacPackageServices>();
 }