public async Task GetAllRealEstateTypesCountShouldReturnThree() { var mapper = this.GetMapper(); var realEstateTypeService = new RealEstateTypeServices(context); var realEstateTypeServiceModel = await realEstateTypeService.GetAllTypesAsync(); var realEstateTypesViewModel = mapper.Map <List <RealEstateTypeViewModel> >(realEstateTypeServiceModel); int numberOftypes = realEstateTypesViewModel.Count(); var expectedResultCount = 3; Assert.That(numberOftypes, Is.EqualTo(expectedResultCount), ResultCountMismatchMessage); }