protected override void beforeEach() { theInput = new InstallInput() { AppFolder = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "folder1") }; theManifest = new ApplicationManifest(); Services.PartialMockTheClassUnderTest(); }
protected override void beforeEach() { theEntries = new LogEntry[] { new LogEntry(), new LogEntry(), new LogEntry(), }; theInput = new InstallInput() { AppFolder = "c:\\folder1" }; MockFor <IEnvironmentGateway>().Stub(x => x.Install()).Return(theEntries); MockFor <IEnvironmentGateway>().Stub(x => x.CheckEnvironment()).Return(theEntries); MockFor <IEnvironmentGateway>().Stub(x => x.InstallAndCheckEnvironment()).Return(theEntries); }
public void builds_the_request() { var input = new InstallInput { Package = "FubuCore", VersionFlag = "1.1.0.0", ProjectFlag = "Test", ModeFlag = UpdateMode.Fixed, ForceUpdatesFlag = true }; var request = input.Requests(null).Single(); request.Dependency.ShouldEqual(new Dependency("FubuCore", "1.1.0.0", UpdateMode.Fixed)); request.Project.ShouldEqual(input.ProjectFlag); request.ForceUpdates.ShouldEqual(input.ForceUpdatesFlag); }
public void builds_the_request() { var input = new InstallInput { Package = "FubuCore", VersionFlag = "1.1.0.0", ProjectFlag = "Test", ModeFlag = UpdateMode.Fixed, ForceUpdatesFlag = true }; var request = input.Requests(null).Single(); request.Dependency.ShouldEqual(new Dependency("FubuCore", "1.1.0.0", UpdateMode.Fixed)); request.Project.ShouldEqual(input.ProjectFlag); request.ForceUpdates.ShouldEqual(input.ForceUpdatesFlag); }