public async void GetByCompanyIdInvalid(string id) { List <Manufacturer> returnList = EntitiesFactory.GetManufacturerList(); _manufacturedRepository.GetByCompanyId(id).Returns(returnList); IEnumerable <Manufacturer> result = await _manufacturerService.GetByCompanyId(id); result.Should().BeNull(); }
public async void ImportInvalid(string id, string companyId, string name, string country) { var manufacturedInvalid = EntitiesFactory.GetNewManufacturerParameterized(id, companyId, name, country); List <Manufacturer> manufacturedList = EntitiesFactory.GetManufacturerList(); manufacturedList.Add(manufacturedInvalid); _manufacturedRepository.Import(manufacturedList).Returns(true); bool result = await _manufacturerService.Import(manufacturedList); result.Should().BeFalse(); }