Example #1
0
        public async Task GetAllAsyncShouldReturnEmptyCollectionIfNoManufacturers()
        {
            //Arrange
            var repository          = this.GetManufacturerRepository(new List <TransmissionType>());
            var transmissionService = new TransimissionService(repository.Object);

            //Act
            var result = await transmissionService.GetAllTypesAsync();

            //Assert
            result
            .Should()
            .BeEmpty();
        }
Example #2
0
        public async Task GetAllAsyncShouldReturnCollectionOfTransmissionTypeIfAny()
        {
            //Arrange
            var repository          = this.GetManufacturerRepository(this.GetTestTransmissionTypeList());
            var transmissionService = new TransimissionService(repository.Object);

            //Act
            var result = await transmissionService.GetAllTypesAsync();

            //Assert
            result
            .Should()
            .NotBeEmpty();
        }