Exemplo n.º 1
0
        public void SearchStock_Should_ReturnEmptyArray_WhenNoMatch(string dealerCode, string make, string model, int carStockCount)
        {
            //arrange
            var cars = TestingData.GetCarStock();

            //act
            var result = _testee.SearchStock(cars, dealerCode, make, model);

            //assert
            result.Should().NotBeNull();
            result.CarStocks.Length.Should().Be(carStockCount);
        }
Exemplo n.º 2
0
        public void GetAllStock_Should_Be_CaseInsensitive(string dealerCode, int CarStockCount)
        {
            //arrange
            var cars = TestingData.GetCarStock();

            //act
            var result = _testee.GetAllCarsStock(cars, dealerCode);

            //assert
            result.Should().NotBeNull();
            result.CarStocks.Length.Should().Be(CarStockCount);
        }
Exemplo n.º 3
0
        public void SearchStock_Should_Be_CaseInsensitive(string dealerCode, string make, string model, int carStockCount)
        {
            //arrange
            var cars = TestingData.GetCarStock();

            //act
            var result = _testee.SearchStock(cars, dealerCode, make, model);

            //assert
            result.Should().NotBeNull();
            result.CarStocks.Length.Should().Be(carStockCount);
        }
Exemplo n.º 4
0
        public void GetAllStock_With_WrongDealerCode_Should_ReturnEmptyArray()
        {
            //arrange
            var cars = TestingData.GetCarStock();

            //act
            var result = _testee.GetAllCarsStock(cars, "A55");

            //assert
            result.Should().NotBeNull();
            result.CarStocks.Length.Should().Be(0);
        }