Esempio n. 1
0
        public async Task Then_Gets_The_Providers_For_A_Course_From_The_Repository(
            int standardId,
            string sectorSubjectArea,
            short level,
            Guid shortlistUserId,
            [Frozen] Mock <IProviderRepository> repository,
            ProviderService service)
        {
            //Act
            await service.GetProvidersByStandardId(standardId, sectorSubjectArea, level, shortlistUserId);

            //Assert
            repository.Verify(x => x.GetByStandardId(standardId, sectorSubjectArea, level, shortlistUserId), Times.Once);
        }