Пример #1
0
        public void EndAdminsDueToDate_ReturnsCorrect()
        {
            // Arrange
            _repoWrapper
            .Setup(x => x.RegionAdministration.GetAllAsync(It.IsAny <Expression <Func <RegionAdministration, bool> > >(),
                                                           It.IsAny <Func <IQueryable <RegionAdministration>, IIncludableQueryable <RegionAdministration, object> > >()))
            .ReturnsAsync(Admins);
            _repoWrapper
            .Setup(x => x.RegionAdministration.Update(It.IsAny <RegionAdministration>()));
            _repoWrapper
            .Setup(x => x.SaveAsync());
            // Act
            var result = _regionService.EndAdminsDueToDate();

            // Assert
            _repoWrapper.Verify();
            Assert.NotNull(result);
        }