Пример #1
0
        public async Task CreateAsync_ShouldReturnResultResponseWithSuccess()
        {
            var picker = _pickerTestsFixture.GetFakePicker();
            var topics = _pickerTestsFixture.GetFakeTopics();

            var result = await _pickerService.CreateAsync(picker, topics);

            result.Success.Should().BeTrue();
            picker.IsValid().Should().BeTrue();
            _repositoryMock.Verify(rm => rm.CreateAsync(picker), Times.Once);
        }