public void GetDebtorsReadersBadRequest()
 {
     var readerHistoryManagerFake = new Mock<IReaderHistoryManager>();
     //readerHistoryManagerFake.Setup(m => m.GetDebtorsReaders((0,0)).Returns((ReaderBusinessModel)null);
     var controller = new DeptorsReadersApiController(readerHistoryManagerFake.Object);
     controller.Request = new HttpRequestMessage();
     controller.Request.Properties.Add(HttpPropertyKeys.HttpConfigurationKey, new HttpConfiguration());
     var result = controller.GetDeptorsReaders("", "", 1, 2, "", "");
     Assert.AreEqual(HttpStatusCode.BadRequest, result.StatusCode);
 }
        public void GetDebtorsReaders()
        {
            var readerHistoryManagerFake = new Mock<IReaderHistoryManager>();
            var gridModel = this.fixture.Create<DeptorsReadersModel>();

            var number = It.IsAny<string>();
            readerHistoryManagerFake.Setup(m => m.GetDebtorsReaders(0, 0)).Returns(new List<DeptorsReadersModel>());
            var controller = new DeptorsReadersApiController(readerHistoryManagerFake.Object);
            controller.Request = new HttpRequestMessage();
            controller.Request.Properties.Add(HttpPropertyKeys.HttpConfigurationKey, new HttpConfiguration());
            var result = controller.GetDeptorsReaders("", "", 1, 2, "", "");
            Assert.AreEqual(HttpStatusCode.OK, result.StatusCode);
        }