public ServicesKeyword() { ProgramConfiguration = new ProgramConfigurationSupplier(); UserConfiguration = new UserConfigurationSupplier(); SystemLevelConfiguration = new SystemLevelConfigurationSupplier(); WebProxy = new RunningWebProxy(this); }
public void ConfigurationWasSuccessfullyLoadedFromEnryptedText() { //Arrange string encryptedUserConfiguration = "QLiHt6rADqprmc0LqINtIxV2q+jApusXxgXL5KoHhLefOl+kKRPcFQQD0E9lIPo0L0UMjhSHdLvLOG0/GFUoQjYlB8RednefsikQDLXQMLFXSoyHMjWsqw/wODSnn4Ke"; string passwordToDecrypt = "admin"; CurrentUserConfiguration userConfigurationToCheck = new CurrentUserConfiguration() { ProfileList = new List <Profile>() }; //Act var result = UserConfigurationSupplier.DecryptConfiguration(encryptedUserConfiguration, passwordToDecrypt); //Assert result.Should().NotBeNull(); result.Should().BeEquivalentTo(userConfigurationToCheck); }