public async Task Projection_NotExists_TestMethod() { bool expected = false; bool actual = true; TableEventStreamReader testReader = new TableEventStreamReader( new EventStreamAttribute("Domain Test", "Entity Type Test", "Instance is not existing abc.def"), "RetailBank"); ProjectionProcessor testObj = new ProjectionProcessor(testReader); actual = await testObj.Exists(); Assert.AreEqual(expected, actual); }
public async Task Projection_Exists_TestMethod() { bool expected = true; bool actual = false; TableEventStreamReader testReader = new TableEventStreamReader( new EventStreamAttribute("Bank", "Account", "Instance 1234"), "RetailBank"); ProjectionProcessor testObj = new ProjectionProcessor(testReader); actual = await testObj.Exists(); Assert.AreEqual(expected, actual); }