public void GetTimeframeById_returnNull_forNonExistingItem()
        {
            //Arrange
            EFTimeframeRepository repository = new EFTimeframeRepository();
            TimeframeDto          baseDto    = getDefaultTimeframeDto();

            insertTimeframeToTestDb(baseDto);

            //Act
            TimeframeDto dto = repository.GetTimeframeById(baseDto.Id + 21);

            //Assert
            Assert.IsNull(dto);
        }
        public void GetTimeframeById_returnProperDto_forExistingItem()
        {
            //Arrange
            EFTimeframeRepository repository = new EFTimeframeRepository();
            TimeframeDto          baseDto    = getDefaultTimeframeDto();

            insertTimeframeToTestDb(baseDto);

            //Act
            TimeframeDto dto = repository.GetTimeframeById(baseDto.Id);

            //Assert
            var areEqual = baseDto.Equals(dto);

            Assert.IsTrue(areEqual);
        }