public async Task Given_An_ArchetypeMessage_If_Archetype_Is_Not_Found_Should_Invoke_Add_Method() { // Arrange var archetypeMessage = new ArchetypeMessage(); // Act await _sut.Process(archetypeMessage); // Assert await _archetypeService.Received(1).Add(Arg.Any <Archetype>()); }
public async Task Given_A_Valid_Article_If_The_Title_Equals_Archetype_IsSuccessful_Should_Be_True() { // Arrange var article = new Article { CorrelationId = Guid.NewGuid(), Id = 909890, Title = "Archetype", Url = "http://yugioh.wikia.com/wiki/Blue-Eyes" }; // Act var result = await _sut.Process(article); // Assert result.IsSuccessful.Should().BeTrue(); }