public async Task CustomerRate_Add_New_Rate_For_New_Customer_Test()
        {
            //Arrange
            var custRate = new Rate {
                CustomerGuid = _custTwoGuid, HourlyRate = 34M, RateGuid = _rateTwoGuid, DateCreated = DateTime.UtcNow
            };

            _customerRatesRepo.Setup(c => c.AddCustomerRate(custRate)).Callback((Rate custRate) => {
                _customerRates.Add(custRate);
            }).ReturnsAsync(true);

            //Act
            var res = await _customerRatesService.AddCustomerRate(custRate);

            //Assert
            Assert.IsTrue(res.ReturnObject);
            Assert.AreEqual(2, _customerRates.Count);
        }
        public async Task <IActionResult> Post([FromBody] Rate rate)
        {
            var res = await _customerRatesService.AddCustomerRate(rate);

            if (res.ErrorCode != ErrorCodes.NONE)
            {
                return(BadRequest(res));
            }

            return(Ok(res));
        }