public virtual void before_each() { autoSubstitute = new AutoSubstitute(); projectWrapperFactory = autoSubstitute.Resolve <IProjectWrapperFactory>(); fileService = autoSubstitute.Resolve <IFileService>(); IProjectWrapper notAProject = null; projectWrapperFactory.Create(Arg.Any <IVsHierarchy>()).Returns(notAProject); fileService.Exists(Arg.Any <string>()).Returns(false); converter = autoSubstitute.Resolve <ProjectConverter>(); someProjectInfo = new ProjectInfo(); someHierarchy = autoSubstitute.Resolve <IVsHierarchy>(); someDummyProject = autoSubstitute.Resolve <IProjectWrapper>(); }
public ProjectConverter(IProjectWrapperFactory projectWrapperFactory, IFileService fileService) { this.projectWrapperFactory = projectWrapperFactory; this.fileService = fileService; }