예제 #1
0
        public async Task CreateAsync_ThrowsException_WhenNullDto()
        {
            Func <Task> action = async() => await _genreServices.CreateAsync(null);

            await action.Should().ThrowAsync <InvalidServiceOperationException>().WithMessage("Is null genre dto");
        }