public void Get_WithEmpty_ReturnsCurrentReaderDto()
        {
            uowMock.Setup(u => u.Readers.GetAll()).Returns(new List<Reader>() { readerTest }.AsQueryable());

            ReaderController sut = new ReaderController(uowMock.Object);
            ReaderDto actual = sut.Get();

            Assert.AreEqual(readerTest.Id, actual.Id);
            Assert.AreEqual(readerTest.UserName, actual.UserName);
        }
 public void Get_NotFoundReader_ThrowBadRequest()
 {
     uowMock.Setup(u => u.Readers.GetAll()).Returns(new List<Reader>().AsQueryable());
     HttpResponseException exception = null;
     try
     {
         ReaderController sut = new ReaderController(uowMock.Object);
         ReaderDto actual = sut.Get();
     }
     catch (HttpResponseException ex)
     {
         exception = ex;
     }
     Assert.IsNotNull(exception);
     Assert.AreEqual(HttpStatusCode.BadRequest, exception.Response.StatusCode);
 }
 public void Constructor_WithEmptyDetails_ThrowException()
 {
     ReaderController sut = new ReaderController(null);
 }