public void GetFxPairByName_returnNull_forNonExistingItem()
        {
            //Arrange
            EFCurrencyRepository repository = new EFCurrencyRepository();
            FxPairDto            baseDto    = getDefaultFxPairDto();

            insertFxPairToTestDb(baseDto);

            //Act
            FxPairDto dto = repository.GetFxPairBySymbol(baseDto.Name + "a");

            //Assert
            Assert.IsNull(dto);
        }
        public void GetFxPairByName_returnProperDto_forExistingItem()
        {
            //Arrange
            EFCurrencyRepository repository = new EFCurrencyRepository();
            FxPairDto            baseDto    = getDefaultFxPairDto();

            insertFxPairToTestDb(baseDto);

            //Act
            FxPairDto dto = repository.GetFxPairBySymbol(baseDto.Name);

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

            Assert.IsTrue(areEqual);
        }