Exemplo n.º 1
0
        public void ServerWithTwoDisks_BothDiskCommandsExecutedSuccessfully_BothDisksActive()
        {
            var commandResults = GetSingleServerDummyOutputWith2ActivePaths();
            var csvRecords     = ServerSummaryParser.SummarizeServerRecords(commandResults.ToLookup(r => r.ServerName));

            CsvWriter.WriteToFile(CsvFileName, csvRecords);
        }
Exemplo n.º 2
0
        public void ServerWithTwoDisks_ThirdDiskNotFound_TwoDisksActive()
        {
            var commandResults = GetSingleServerDummyOutputWith2ActivePaths().ToList();

            commandResults.Add(new MpClaimCommandResult
            {
                ServerName                  = commandResults[0].ServerName,
                DiskIndexNumber             = 2,
                CommandExecutedSuccessfully = false,
                CommandFailureReason        = "Cannot find specified drive number"
            });

            var csvRecords = ServerSummaryParser.SummarizeServerRecords(commandResults.ToLookup(r => r.ServerName));

            CsvWriter.WriteToFile(CsvFileName, csvRecords);
        }