public async Task Create_Cat_Successful() { var cat = new Cat(Guid.NewGuid().ToString(), Ability.Napping); await CatService.Create(cat); MessageBrokerMock.Verify(MessageCommand.Create); }
public async Task Delete_Cat_Successful() { var cat = TestData.Cats.FirstOrDefault(); cat.Name = Guid.NewGuid().ToString(); await CatService.Delete(cat.Id); MessageBrokerMock.Verify(MessageCommand.Delete); }