Пример #1
0
        public void Should_create_artifact_when_artifact_data_is_valid()
        {
            var createArtifactModel = _fixture.Build <CreateArtifactModel>()
                                      .Create();
            var artifact = GetArtifact(createArtifactModel);


            _artifactService.CreateArtifact(createArtifactModel).ConfigureAwait(false);


            _artifactRepo.Received(1).SaveArtifact(Arg.Is <CreateArtifactModel>(x => x.Title == artifact.Title));
        }