Ejemplo n.º 1
0
        public async Task CreateEffectType_AddANewEffectTypeInDatabase()
        {
            var createEffectTypeRequest = AutoFill <CreateEffectTypeRequest> .One();

            var effectType = await _effectService.CreateEffectTypeAsync(new NaheulbookExecutionContext(), createEffectTypeRequest);

            Received.InOrder(() =>
            {
                _effectTypeRepository.Add(effectType);
                _unitOfWork.SaveChangesAsync();
            });
            effectType.Name.Should().Be("some-name");
        }