public void GetCustomersByUserName_InvalidUser()
        {
            #region ASSIGN

            CustomerRepo           testRepo       = new CustomerRepo();
            CustomersApiController testController = new CustomersApiController(testRepo);

            #endregion

            #region ACT

            var taskReturn = testController.GetCustomerByUser("*****@*****.**");
            taskReturn.Wait();
            var result = taskReturn.Result.Value;

            Customer testData = result;

            #endregion

            #region ASSERT

            Assert.AreNotEqual(testData.Id, 1);
            Assert.AreNotEqual(testData.Name, "John Doe");
            Assert.AreNotEqual(testData.UserName, "*****@*****.**");
            Assert.AreNotEqual(testData.Street, "123 A Street");
            Assert.AreNotEqual(testData.City, "Here");
            Assert.AreNotEqual(testData.StateID, 1);
            Assert.AreNotEqual(testData.ZipCode, 10000);

            #endregion
        }
        public void GetCustomersByUserName_NonExistentUser()
        {
            #region ASSIGN

            CustomerRepo           testRepo       = new CustomerRepo();
            CustomersApiController testController = new CustomersApiController(testRepo);

            #endregion

            #region ACT

            var taskReturn = testController.GetCustomerByUser("*****@*****.**");
            taskReturn.Wait();
            var result = taskReturn.Result.Result;

            #endregion

            #region ASSERT

            Assert.IsTrue(result is NotFoundResult);
            Assert.AreEqual((result as NotFoundResult).StatusCode, 404);

            #endregion
        }