public void UpsertPlan_Non_Existent_Table_Throws_Exception() { // Arrange Guid planUId = Guid.NewGuid(); PlanItem plan = new PlanItem() { UId = planUId, Name = _planPrefix + planUId, UniqueName = _planPrefix + planUId }; DynamoDbDal dal = new DynamoDbDal { PlanTable = "XXXXXX" }; // Act ResourceNotFoundException ex = Assert.Throws <ResourceNotFoundException>(() => dal.UpsertPlan(plan)); StringAssert.Contains("Requested resource not found: Table", ex.Message); }