public SProcPublisherTest(PackageTestFilesFixture files) { _files = files; _shell = Substitute.For <ICoreShell>(); _pss = Substitute.For <IProjectSystemServices>(); _dacServices = Substitute.For <IDacPackageServices>(); }
public SProcGeneratorTest(PackageTestFilesFixture files) { _files = files; _pss = Substitute.For <IProjectSystemServices>(); _project = Substitute.For <EnvDTE.Project>(); _project.FullName.Returns(Path.Combine(_files.DestinationPath, sqlProjectName)); }
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)); }
public SettingsProviderTest(PackageTestFilesFixture files) { _files = files; }
public SettingsProviderTest(PackageTestFilesFixture files) { _files = files; }
public SProcPublisherTest(PackageTestFilesFixture files) { _files = files; _appShell = Substitute.For<IApplicationShell>(); _pss = Substitute.For<IProjectSystemServices>(); _dacServices = Substitute.For<IDacPackageServices>(); }