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(); }
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(); }