public void SetParamsTest() { var testCommand = PrepareTestCommand(); var commands = MiscHelpers.LoadAllCommands(); MiscHelpers.ResolveCommand(commands, testCommand); var cmd = Activator.CreateInstance(testCommand.Type); MiscHelpers.SetParams(cmd, testCommand); var expected = new Rhetos { AppPoolName = "vlado_test", DataBaseName = "vlado_test_vladimir", DBPassword = "******", DBServer = "ADSQL2008R2\\ADSQL2012", DBUserName = "******", Password = "******", RhetosVersion = "v2.7.0", SiteName = "vlado_test", UserName = "******", UseWindowsAuth = true }; cmd.Should().BeEquivalentTo(expected); }
private void TestSetLock(Common.SetLock parameters, Common.DomRepository repository, Rhetos.Utilities.IUserInfo userInfo) { repository.Common.SetLock.Execute(parameters); }