Exemple #1
0
        public void GetAuditingSettings_Execute_NullValues_Fails()
        {
            //------------Setup for test--------------------------

            var getAuditingSettings = new GetAuditingSettings();
            var serializer          = new Dev2JsonSerializer();

            //------------Execute Test---------------------------

            var executeResults = getAuditingSettings.Execute(null, null);
            //------------Assert Results-------------------------
        }
Exemple #2
0
        public void GetAuditingSettings_Execute_LegacySettingsData()
        {
            //------------Setup for test--------------------------

            var workspaceMock = new Mock <IWorkspace>();
            var requestArgs   = new Dictionary <string, StringBuilder>();

            var getAuditingSettings = new GetAuditingSettings();
            var serializer          = new Dev2JsonSerializer();

            //------------Execute Test---------------------------

            var executeResults = getAuditingSettings.Execute(requestArgs, workspaceMock.Object);
            var result         = serializer.Deserialize <LegacySettingsData>(executeResults);

            //------------Assert Results-------------------------
            Assert.IsNotNull(result.AuditFilePath);
        }