public void GetFailedTest()
        {
            //List backups
            //This API will list all backups that have initiated.Backup status is one of the following:
            //•	In progress
            //•	OK
            //•	Failed
            //Request: GET / backups
            //Request body: N / A
            //Response body:
            //  ```
            //  [
            // {
            // “backupId”: “<backup id>”,
            //  “date”: “<backup date>”,

            //“status”: “<backup status>”
            //    },
            //    {
            //      …
            //    }
            //  ]
            //  ```

            // Arrange
            BackupStatus   backupStatus  = BackupStatus.Failed;
            IBackupService backupService = new StubIBackupService()
            {
                InitiateAsync = () =>
                {
                    // Generate a random id
                    var generator = new Random();
                    var id        = 0;
                    lock (generator)
                    {
                        id = (new Random()).Next(1, int.MaxValue);
                    }

                    return(Task.FromResult(id));
                },
                GetAll = () =>
                {
                    var rtnVal = new List <Backup.Backup>();

                    var date = DateTime.Now;
                    for (int i = 0; i < 7; i++)
                    {
                        date = date.AddDays(i);
                        for (int j = 0; j < 24; j++)
                        {
                            date = date.AddHours(j);
                            rtnVal.Add(new Backup.Backup(i + j, date, backupStatus, null));
                        }
                    }

                    return(rtnVal);
                }
            };

            BackupsController target = new BackupsController(backupService)
            {
                Request = new HttpRequestMessage()
                {
                    Method = HttpMethod.Get, Properties = { { HttpPropertyKeys.HttpConfigurationKey, new HttpConfiguration() } }
                }
            };

            // Act
            var actual = target.Get() as OkNegotiatedContentResult <IEnumerable <BackupViewModel> >;

            // Assert
            Assert.IsNotNull(actual);
            var backups = actual.Content;

            Assert.IsNotNull(backups);
            Assert.IsTrue(backups.Any());
            Assert.IsTrue(backups.All((b) => 0 <= b.BackupId));
            Assert.IsTrue(backups.All((b) => backupStatus == b.Status));
        }